| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DevToolsEmulator_h | 5 #ifndef DevToolsEmulator_h |
| 6 #define DevToolsEmulator_h | 6 #define DevToolsEmulator_h |
| 7 | 7 |
| 8 #include "wtf/Forward.h" | 8 #include "wtf/Forward.h" |
| 9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 void enableMobileEmulation(); | 46 void enableMobileEmulation(); |
| 47 void disableMobileEmulation(); | 47 void disableMobileEmulation(); |
| 48 | 48 |
| 49 WebViewImpl* m_webViewImpl; | 49 WebViewImpl* m_webViewImpl; |
| 50 InspectorEmulationAgent* m_emulationAgent; | 50 InspectorEmulationAgent* m_emulationAgent; |
| 51 | 51 |
| 52 bool m_deviceMetricsEnabled; | 52 bool m_deviceMetricsEnabled; |
| 53 bool m_emulateMobileEnabled; | 53 bool m_emulateMobileEnabled; |
| 54 bool m_originalViewportEnabled; | |
| 55 bool m_isOverlayScrollbarsEnabled; | 54 bool m_isOverlayScrollbarsEnabled; |
| 56 float m_originalDefaultMinimumPageScaleFactor; | 55 float m_originalDefaultMinimumPageScaleFactor; |
| 57 float m_originalDefaultMaximumPageScaleFactor; | 56 float m_originalDefaultMaximumPageScaleFactor; |
| 58 bool m_embedderTextAutosizingEnabled; | 57 bool m_embedderTextAutosizingEnabled; |
| 59 float m_embedderDeviceScaleAdjustment; | 58 float m_embedderDeviceScaleAdjustment; |
| 60 bool m_embedderPreferCompositingToLCDTextEnabled; | 59 bool m_embedderPreferCompositingToLCDTextEnabled; |
| 61 bool m_embedderUseMobileViewport; | 60 bool m_embedderUseMobileViewport; |
| 62 | 61 |
| 63 bool m_touchEventEmulationEnabled; | 62 bool m_touchEventEmulationEnabled; |
| 64 bool m_doubleTapToZoomEnabled; | 63 bool m_doubleTapToZoomEnabled; |
| 65 bool m_originalTouchEnabled; | 64 bool m_originalTouchEnabled; |
| 66 bool m_originalDeviceSupportsMouse; | 65 bool m_originalDeviceSupportsMouse; |
| 67 bool m_originalDeviceSupportsTouch; | 66 bool m_originalDeviceSupportsTouch; |
| 68 int m_originalMaxTouchPoints; | 67 int m_originalMaxTouchPoints; |
| 69 OwnPtr<IntPoint> m_lastPinchAnchorCss; | 68 OwnPtr<IntPoint> m_lastPinchAnchorCss; |
| 70 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 69 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
| 71 | 70 |
| 72 bool m_embedderScriptEnabled; | 71 bool m_embedderScriptEnabled; |
| 73 bool m_scriptExecutionDisabled; | 72 bool m_scriptExecutionDisabled; |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace blink | 75 } // namespace blink |
| 77 | 76 |
| 78 #endif | 77 #endif |
| OLD | NEW |