diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-20 17:34:24 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-20 17:34:24 +0000 |
commit | e0bc2cb769ee0d0fceade239358ad48453dac4a8 (patch) | |
tree | 5b2cbd6ef19a46010d89f54889b37aa917e9a126 /content/public | |
parent | ccb09a6f976040156811357d50c43ee756fb7af0 (diff) | |
download | chromium_src-e0bc2cb769ee0d0fceade239358ad48453dac4a8.zip chromium_src-e0bc2cb769ee0d0fceade239358ad48453dac4a8.tar.gz chromium_src-e0bc2cb769ee0d0fceade239358ad48453dac4a8.tar.bz2 |
Provide a way to change the current screen orientation from TestRunner.
This will change the orientation and notify the dispatcher of that
change. As a side effect, in that mode lockOrientation() and
unlockOrientation() calls will not go through the backend.
BUG=162827
Review URL: https://codereview.chromium.org/205393006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/test/layouttest_support.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h index 91a8098..370a6e4 100644 --- a/content/public/test/layouttest_support.h +++ b/content/public/test/layouttest_support.h @@ -6,6 +6,7 @@ #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ #include "base/callback_forward.h" +#include "third_party/WebKit/public/platform/WebScreenOrientation.h" namespace blink { class WebDeviceMotionData; @@ -49,6 +50,10 @@ void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); +// Sets WebScreenOrientation that should be used when registering a listener +// through WebKitPlatformSupport::setScreenOrientationListener(). +void SetMockScreenOrientation(const blink::WebScreenOrientation& orientation); + // Returns the length of the local session history of a render view. int GetLocalSessionHistoryLength(RenderView* render_view); |