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

Unified Diff: third_party/WebKit/Source/web/DevToolsEmulator.h

Issue 1632983002: [DevTools] Do not reset scroll when emulating device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/web/DevToolsEmulator.h
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.h b/third_party/WebKit/Source/web/DevToolsEmulator.h
index c48c3a146c02ebe9490a03753a3cb4b4021b7fa6..fc25aa43e672c7c5eccdb659fc368334c84729b1 100644
--- a/third_party/WebKit/Source/web/DevToolsEmulator.h
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.h
@@ -40,6 +40,8 @@ public:
void setPrimaryPointerType(PointerType);
void setAvailableHoverTypes(int);
void setPrimaryHoverType(HoverType);
+ void setMainFrameResizesAreOrientationChanges(bool);
+ bool mainFrameResizesAreOrientationChanges() const;
// Emulation.
void enableDeviceEmulation(const WebDeviceEmulationParams&);
@@ -78,6 +80,7 @@ private:
bool m_touchEventEmulationEnabled;
bool m_doubleTapToZoomEnabled;
+ bool m_mainFrameResizesAreOrientationChanges;
bool m_originalTouchEnabled;
bool m_originalDeviceSupportsMouse;
bool m_originalDeviceSupportsTouch;
« no previous file with comments | « third_party/WebKit/Source/devtools/protocol.json ('k') | third_party/WebKit/Source/web/DevToolsEmulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698