summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authormlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 07:23:19 +0000
committermlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 07:23:19 +0000
commitac3f3fa3247c790a8547d05aa04b83cd4a5690a6 (patch)
tree744287185ee969fa91f1925f8033c215a20ca1be /content/shell
parent3ced8331ccc9da460ea602d3594798753ade1a28 (diff)
downloadchromium_src-ac3f3fa3247c790a8547d05aa04b83cd4a5690a6.zip
chromium_src-ac3f3fa3247c790a8547d05aa04b83cd4a5690a6.tar.gz
chromium_src-ac3f3fa3247c790a8547d05aa04b83cd4a5690a6.tar.bz2
Update Chrome code to use new WebScreenOrientation types.
BUG=162827 Review URL: https://codereview.chromium.org/235893009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/renderer/test_runner/WebTestDelegate.h4
-rw-r--r--content/shell/renderer/test_runner/test_runner.cc2
-rw-r--r--content/shell/renderer/webkit_test_runner.cc4
-rw-r--r--content/shell/renderer/webkit_test_runner.h4
4 files changed, 7 insertions, 7 deletions
diff --git a/content/shell/renderer/test_runner/WebTestDelegate.h b/content/shell/renderer/test_runner/WebTestDelegate.h
index f04c1f7..6c7b199 100644
--- a/content/shell/renderer/test_runner/WebTestDelegate.h
+++ b/content/shell/renderer/test_runner/WebTestDelegate.h
@@ -7,7 +7,7 @@
#include <string>
-#include "third_party/WebKit/public/platform/WebScreenOrientation.h"
+#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/platform/WebVector.h"
@@ -57,7 +57,7 @@ public:
virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData&) = 0;
// Set orientation to set when registering via Platform::setScreenOrientationListener().
- virtual void setScreenOrientation(const blink::WebScreenOrientation&) = 0;
+ virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0;
// Add a message to the text dump for the layout test.
virtual void printMessage(const std::string& message) = 0;
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc
index 01235c9..4e1ce4a 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -2202,7 +2202,7 @@ void TestRunner::SetMockDeviceOrientation(bool has_alpha, double alpha,
}
void TestRunner::SetMockScreenOrientation(const std::string& orientation_str) {
- blink::WebScreenOrientation orientation;
+ blink::WebScreenOrientationType orientation;
if (orientation_str == "portrait-primary") {
orientation = WebScreenOrientationPortraitPrimary;
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index 826d47a..6253c58 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -84,7 +84,7 @@ using blink::WebString;
using blink::WebURL;
using blink::WebURLError;
using blink::WebURLRequest;
-using blink::WebScreenOrientation;
+using blink::WebScreenOrientationType;
using blink::WebTestingSupport;
using blink::WebVector;
using blink::WebView;
@@ -259,7 +259,7 @@ void WebKitTestRunner::setDeviceOrientationData(
}
void WebKitTestRunner::setScreenOrientation(
- const WebScreenOrientation& orientation) {
+ const WebScreenOrientationType& orientation) {
SetMockScreenOrientation(orientation);
}
diff --git a/content/shell/renderer/webkit_test_runner.h b/content/shell/renderer/webkit_test_runner.h
index 9d9c935..df98718 100644
--- a/content/shell/renderer/webkit_test_runner.h
+++ b/content/shell/renderer/webkit_test_runner.h
@@ -15,7 +15,7 @@
#include "content/shell/common/shell_test_configuration.h"
#include "content/shell/common/test_runner/test_preferences.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
-#include "third_party/WebKit/public/platform/WebScreenOrientation.h"
+#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
#include "v8/include/v8.h"
class SkCanvas;
@@ -66,7 +66,7 @@ class WebKitTestRunner : public RenderViewObserver,
virtual void setDeviceOrientationData(
const blink::WebDeviceOrientationData& data) OVERRIDE;
virtual void setScreenOrientation(
- const blink::WebScreenOrientation& orientation) OVERRIDE;
+ const blink::WebScreenOrientationType& orientation) OVERRIDE;
virtual void printMessage(const std::string& message) OVERRIDE;
virtual void postTask(::WebTestRunner::WebTask* task) OVERRIDE;
virtual void postDelayedTask(::WebTestRunner::WebTask* task,