Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: components/test_runner/mock_screen_orientation_client.h

Issue 1711083002: [DevTools] Move screen orientation override to RenderWidgetScreenMetricsEmulator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/mock_screen_orientation_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_screen_orientation_client.h
diff --git a/components/test_runner/mock_screen_orientation_client.h b/components/test_runner/mock_screen_orientation_client.h
index ad868541ca17b2b4a1d6fd1f4c52beabf98d1cc2..15cb81d489c6ad17add20f484f8b74be1a5a6987 100644
--- a/components/test_runner/mock_screen_orientation_client.h
+++ b/components/test_runner/mock_screen_orientation_client.h
@@ -31,6 +31,7 @@ class TEST_RUNNER_EXPORT MockScreenOrientationClient
blink::WebScreenOrientationType CurrentOrientationType() const;
unsigned CurrentOrientationAngle() const;
+ bool is_active() const { return is_active_; }
private:
// From blink::WebScreenOrientationClient.
@@ -51,6 +52,7 @@ class TEST_RUNNER_EXPORT MockScreenOrientationClient
blink::WebScreenOrientationLockType current_lock_;
blink::WebScreenOrientationType device_orientation_;
blink::WebScreenOrientationType current_orientation_;
+ bool is_active_;
DISALLOW_COPY_AND_ASSIGN(MockScreenOrientationClient);
};
« no previous file with comments | « no previous file | components/test_runner/mock_screen_orientation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698