@@ -38,6 +38,7 @@ class QQmlViewCmdExecutor : public QViewCmdExecutor {
3838 virtual void Reload (Error** error) NOT_SUPPORTED_IMPL;
3939 virtual void GetSource (std::string* source, Error** error);
4040 virtual void SendKeys (const ElementId& element, const string16& keys, Error** error);
41+ virtual void GetElementScreenShot (const ElementId& element, std::string* png, Error** error);
4142 virtual void MouseDoubleClick (Error** error);
4243 virtual void MouseButtonUp (Error** error);
4344 virtual void MouseButtonDown (Error** error);
@@ -103,21 +104,20 @@ class QQmlViewCmdExecutor : public QViewCmdExecutor {
103104 virtual void GetMute (const ElementId& element, bool *, Error**error) NOT_SUPPORTED_IMPL;
104105 virtual void SetPlaybackSpeed (const ElementId& element, double , Error**error) NOT_SUPPORTED_IMPL;;
105106 virtual void GetPlaybackSpeed (const ElementId& element, double *, Error**error) NOT_SUPPORTED_IMPL;;
106- virtual void VisualizerSource (std::string* source, Error** error) NOT_SUPPORTED_IMPL ;
107+ virtual void VisualizerSource (std::string* source, Error** error);
107108 virtual void VisualizerShowPoint (Error** error) NOT_SUPPORTED_IMPL;
109+ virtual void TouchPinchZoom (const ElementId &element, const double &scale, Error** error) NOT_SUPPORTED_IMPL;
110+ virtual void TouchPinchRotate (const ElementId &element, const int &angle, Error** error) NOT_SUPPORTED_IMPL;
108111
109112 virtual void SetOnline (bool , Error** error) NOT_SUPPORTED_IMPL;
110113 virtual void IsOnline (bool *, Error** error) NOT_SUPPORTED_IMPL;
111114
112115protected:
113116 QDeclarativeView* getView (const ViewId& viewId, Error** error);
114- typedef QHash<QString, QDeclarativeItem*> XMLElementMap;
115117
116118 QDeclarativeItem* getElement (const ElementId &element, Error** error);
117119 bool FilterElement (const QDeclarativeItem* item, const std::string& locator, const std::string& query);
118120 void FindElementsByXpath (QDeclarativeItem* parent, const std::string &query, std::vector<ElementId>* elements, Error **error);
119- void createUIXML (QDeclarativeItem *parent, QIODevice* buff, XMLElementMap& elementsMap, Error** error);
120- void addItemToXML (QDeclarativeItem* parent, XMLElementMap& elementsMap, QXmlStreamWriter* writer);
121121
122122private:
123123 DISALLOW_COPY_AND_ASSIGN (QQmlViewCmdExecutor);
0 commit comments