Skip to content

Commit 02680bc

Browse files
committed
Merge branch 'WD_1.X_dev' of https://portal-ua.globallogic.com/git/wd into WD_1.X_dev
2 parents 7d1325d + ac5ada0 commit 02680bc

Some content is hidden

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

72 files changed

+319
-46139
lines changed

generate_wdversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
versionfile = open (filename, 'w')
99
versionfile.write("namespace webdriver {\n")
1010
versionfile.write("extern const char kProductName[] = \"WebDriver-cisco-cmt\";\n")
11-
versionfile.write("extern const char kVersionNumber[] = \"1.3.0\";\n")
11+
versionfile.write("extern const char kVersionNumber[] = \"1.2.1\";\n")
1212
versionfile.write("extern const char kBuildTime[] = __TIME__;\n")
1313
versionfile.write("extern const char kBuildDate[] = __DATE__;\n")
1414
versionfile.write("extern const char kLastChanges[] = \"" + data.strip() + "\";\n")

inc/extension_qt/graphics_web_view_executor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class GraphicsWebViewCmdExecutor : public ViewCmdExecutor {
4747
virtual void SetBounds(const Rect& bounds, Error** error) NOT_SUPPORTED_IMPL;
4848
virtual void Maximize(Error** error) NOT_SUPPORTED_IMPL;
4949
virtual void GetScreenShot(std::string* png, Error** error);
50-
virtual void GetElementScreenShot(const ElementId& element, std::string* png, Error** error) NOT_SUPPORTED_IMPL;
50+
virtual void GetElementScreenShot(const ElementId& element, std::string* png, Error** error);
5151
virtual void GoForward(Error** error);
5252
virtual void GoBack(Error** error);
5353
virtual void Reload(Error** error);
@@ -137,6 +137,7 @@ class GraphicsWebViewCmdExecutor : public ViewCmdExecutor {
137137

138138
protected:
139139
QGraphicsWebView* getView(const ViewId& viewId, Error** error);
140+
void saveScreenshot(QImage& image, std::string* png, Error** error);
140141

141142
private:
142143
scoped_ptr<QWebkitProxy> webkitProxy_;

inc/extension_qt/q_view_executor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class QViewCmdExecutor : public ViewCmdExecutor {
5858
QTouchDevice touchDevice;
5959
#endif
6060

61+
void saveScreenshot(QPixmap& pixmap, std::string* png, Error** error);
62+
6163
private:
6264
DISALLOW_COPY_AND_ASSIGN(QViewCmdExecutor);
6365
};

inc/extension_qt/web_view_executor.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef WEBDRIVER_QT_WEB_VIEW_EXECUTOR_H_
22
#define WEBDRIVER_QT_WEB_VIEW_EXECUTOR_H_
33

4+
#include "base/yasper.h"
45
#include "extension_qt/q_view_executor.h"
56
#include "webdriver_logging.h"
67

@@ -50,7 +51,7 @@ class QWebViewCmdExecutor : public QViewCmdExecutor {
5051
virtual void Reload(Error** error);
5152
virtual void GetSource(std::string* source, Error** error);
5253
virtual void SendKeys(const ElementId& element, const string16& keys, Error** error);
53-
virtual void GetElementScreenShot(const ElementId& element, std::string* png, Error** error) NOT_SUPPORTED_IMPL;
54+
virtual void GetElementScreenShot(const ElementId& element, std::string* png, Error** error);
5455
virtual void MouseDoubleClick(Error** error);
5556
virtual void MouseButtonUp(Error** error);
5657
virtual void MouseButtonDown(Error** error);
@@ -133,7 +134,7 @@ class QWebViewCmdExecutor : public QViewCmdExecutor {
133134
QWebView* getView(const ViewId& viewId, Error** error);
134135

135136
private:
136-
scoped_ptr<QWebkitProxy> webkitProxy_;
137+
yasper::ptr<QWebkitProxy> webkitProxy_;
137138
QWebView* view_;
138139

139140
DISALLOW_COPY_AND_ASSIGN(QWebViewCmdExecutor);

inc/webdriver_server.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ class Server {
183183

184184
int ParseConfigToOptions();
185185

186+
int ParseMongooseConfig();
187+
186188
DISALLOW_COPY_AND_ASSIGN(Server);
187189
};
188190

inc/webdriver_switches.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ class Switches {
8888

8989
static const char kWhiteList[];
9090

91+
/// \page page_webdriver_switches WD Server switches
92+
/// - <b>webserver-cfg</b><br>
93+
/// The path to mongoose config file (e.g. config.json) in
94+
/// JSON format with specified mongoose start option
95+
/// (extra-mime-types, listening_ports, etc.)
96+
/// Option from webserver config file will have more priority than
97+
/// commandline param that specify the same option.
98+
99+
static const char kWebServerCfg[];
100+
91101
};
92102

93103
} // namespace webdriver

src/third_party/tidy-html5/include/buffio.h

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)