Skip to content

Commit 8ea4e6d

Browse files
committed
Merge branch 'WD_1.X_dev' of https://portal-ua.globallogic.com/git/wd into WD_1.X_dev
2 parents 7c01ccd + fef4b46 commit 8ea4e6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+46697
-576
lines changed

build_android.sh

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ fi
144144
fi
145145

146146
cp $dist_dir/android/bin/QtApp-release.apk $dist_dir/AndroidWD.apk
147+
rm -rf $dist_dir/android
147148

148149
done
149150

inc/extension_qt/q_view_executor.h

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class QViewCmdExecutor : public ViewCmdExecutor {
5252
QTouchEvent::TouchPoint createTouchPoint(Qt::TouchPointState state, QPointF &point);
5353
QTouchEvent* createSimpleTouchEvent(QEvent::Type eventType, Qt::TouchPointStates touchPointStates, QPointF point);
5454
QTouchEvent* createTouchEvent(QEvent::Type eventType, Qt::TouchPointStates touchPointStates, const QList<QTouchEvent::TouchPoint> &touchPoints);
55+
QTouchEvent* create2PointTouchEvent(QEvent::Type eventType, Qt::TouchPointStates touchPointStates, QPointF &point1, QPointF &point2);
56+
QTouchEvent::TouchPoint createTouchPointWithId(Qt::TouchPointState state, QPointF &point, int id);
5557
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
5658
QTouchDevice touchDevice;
5759
#endif

inc/extension_qt/web_view_executor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class QWebViewCmdExecutor : public QViewCmdExecutor {
126126
virtual void SetOnline(bool, Error** error);
127127
virtual void IsOnline(bool*, Error** error);
128128

129-
virtual void TouchPinchZoom(const ElementId &element, const double &scale, Error** error) NOT_SUPPORTED_IMPL;
130-
virtual void TouchPinchRotate(const ElementId &element, const int &angle, Error** error) NOT_SUPPORTED_IMPL;
129+
virtual void TouchPinchZoom(const ElementId &element, const double &scale, Error** error);
130+
virtual void TouchPinchRotate(const ElementId &element, const int &angle, Error** error);
131131

132132
protected:
133133
QWebView* getView(const ViewId& viewId, Error** error);
+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#ifndef __TIDY_BUFFIO_H__
2+
#define __TIDY_BUFFIO_H__
3+
4+
/** @file buffio.h - Treat buffer as an I/O stream.
5+
6+
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
7+
See tidy.h for the copyright notice.
8+
9+
Requires buffer to automatically grow as bytes are added.
10+
Must keep track of current read and write points.
11+
12+
*/
13+
14+
#include "platform.h"
15+
#include "tidy.h"
16+
17+
#ifdef __cplusplus
18+
extern "C" {
19+
#endif
20+
21+
/** TidyBuffer - A chunk of memory */
22+
TIDY_STRUCT
23+
struct _TidyBuffer
24+
{
25+
TidyAllocator* allocator; /**< Memory allocator */
26+
byte* bp; /**< Pointer to bytes */
27+
uint size; /**< # bytes currently in use */
28+
uint allocated; /**< # bytes allocated */
29+
uint next; /**< Offset of current input position */
30+
};
31+
32+
/** Initialize data structure using the default allocator */
33+
TIDY_EXPORT void TIDY_CALL tidyBufInit( TidyBuffer* buf );
34+
35+
/** Initialize data structure using the given custom allocator */
36+
TIDY_EXPORT void TIDY_CALL tidyBufInitWithAllocator( TidyBuffer* buf, TidyAllocator* allocator );
37+
38+
/** Free current buffer, allocate given amount, reset input pointer,
39+
use the default allocator */
40+
TIDY_EXPORT void TIDY_CALL tidyBufAlloc( TidyBuffer* buf, uint allocSize );
41+
42+
/** Free current buffer, allocate given amount, reset input pointer,
43+
use the given custom allocator */
44+
TIDY_EXPORT void TIDY_CALL tidyBufAllocWithAllocator( TidyBuffer* buf,
45+
TidyAllocator* allocator,
46+
uint allocSize );
47+
48+
/** Expand buffer to given size.
49+
** Chunk size is minimum growth. Pass 0 for default of 256 bytes.
50+
*/
51+
TIDY_EXPORT void TIDY_CALL tidyBufCheckAlloc( TidyBuffer* buf,
52+
uint allocSize, uint chunkSize );
53+
54+
/** Free current contents and zero out */
55+
TIDY_EXPORT void TIDY_CALL tidyBufFree( TidyBuffer* buf );
56+
57+
/** Set buffer bytes to 0 */
58+
TIDY_EXPORT void TIDY_CALL tidyBufClear( TidyBuffer* buf );
59+
60+
/** Attach to existing buffer */
61+
TIDY_EXPORT void TIDY_CALL tidyBufAttach( TidyBuffer* buf, byte* bp, uint size );
62+
63+
/** Detach from buffer. Caller must free. */
64+
TIDY_EXPORT void TIDY_CALL tidyBufDetach( TidyBuffer* buf );
65+
66+
67+
/** Append bytes to buffer. Expand if necessary. */
68+
TIDY_EXPORT void TIDY_CALL tidyBufAppend( TidyBuffer* buf, void* vp, uint size );
69+
70+
/** Append one byte to buffer. Expand if necessary. */
71+
TIDY_EXPORT void TIDY_CALL tidyBufPutByte( TidyBuffer* buf, byte bv );
72+
73+
/** Get byte from end of buffer */
74+
TIDY_EXPORT int TIDY_CALL tidyBufPopByte( TidyBuffer* buf );
75+
76+
77+
/** Get byte from front of buffer. Increment input offset. */
78+
TIDY_EXPORT int TIDY_CALL tidyBufGetByte( TidyBuffer* buf );
79+
80+
/** At end of buffer? */
81+
TIDY_EXPORT Bool TIDY_CALL tidyBufEndOfInput( TidyBuffer* buf );
82+
83+
/** Put a byte back into the buffer. Decrement input offset. */
84+
TIDY_EXPORT void TIDY_CALL tidyBufUngetByte( TidyBuffer* buf, byte bv );
85+
86+
87+
/**************
88+
TIDY
89+
**************/
90+
91+
/* Forward declarations
92+
*/
93+
94+
/** Initialize a buffer input source */
95+
TIDY_EXPORT void TIDY_CALL tidyInitInputBuffer( TidyInputSource* inp, TidyBuffer* buf );
96+
97+
/** Initialize a buffer output sink */
98+
TIDY_EXPORT void TIDY_CALL tidyInitOutputBuffer( TidyOutputSink* outp, TidyBuffer* buf );
99+
100+
#ifdef __cplusplus
101+
}
102+
#endif
103+
#endif /* __TIDY_BUFFIO_H__ */
104+
105+
/*
106+
* local variables:
107+
* mode: c
108+
* indent-tabs-mode: nil
109+
* c-basic-offset: 4
110+
* eval: (c-set-offset 'substatement-open 0)
111+
* end:
112+
*/

0 commit comments

Comments
 (0)