| 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 "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "public/platform/PointerProperties.h" | 9 #include "public/platform/PointerProperties.h" |
| 10 #include "public/platform/WebViewportStyle.h" | 10 #include "public/platform/WebViewportStyle.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void setAvailablePointerTypes(int); | 37 void setAvailablePointerTypes(int); |
| 38 void setPrimaryPointerType(PointerType); | 38 void setPrimaryPointerType(PointerType); |
| 39 void setAvailableHoverTypes(int); | 39 void setAvailableHoverTypes(int); |
| 40 void setPrimaryHoverType(HoverType); | 40 void setPrimaryHoverType(HoverType); |
| 41 void setMainFrameResizesAreOrientationChanges(bool); | 41 void setMainFrameResizesAreOrientationChanges(bool); |
| 42 bool mainFrameResizesAreOrientationChanges() const; | 42 bool mainFrameResizesAreOrientationChanges() const; |
| 43 | 43 |
| 44 // Emulation. | 44 // Emulation. |
| 45 void enableDeviceEmulation(const WebDeviceEmulationParams&); | 45 void enableDeviceEmulation(const WebDeviceEmulationParams&); |
| 46 void disableDeviceEmulation(); | 46 void disableDeviceEmulation(); |
| 47 bool deviceEmulationEnabled() { return m_deviceMetricsEnabled; } | |
| 48 bool resizeIsDeviceSizeChange(); | 47 bool resizeIsDeviceSizeChange(); |
| 49 void setTouchEventEmulationEnabled(bool); | 48 void setTouchEventEmulationEnabled(bool); |
| 50 bool handleInputEvent(const WebInputEvent&); | 49 bool handleInputEvent(const WebInputEvent&); |
| 51 void setScriptExecutionDisabled(bool); | 50 void setScriptExecutionDisabled(bool); |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 explicit DevToolsEmulator(WebViewImpl*); | 53 explicit DevToolsEmulator(WebViewImpl*); |
| 55 | 54 |
| 56 void enableMobileEmulation(); | 55 void enableMobileEmulation(); |
| 57 void disableMobileEmulation(); | 56 void disableMobileEmulation(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 87 OwnPtr<IntPoint> m_lastPinchAnchorCss; | 86 OwnPtr<IntPoint> m_lastPinchAnchorCss; |
| 88 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 87 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
| 89 | 88 |
| 90 bool m_embedderScriptEnabled; | 89 bool m_embedderScriptEnabled; |
| 91 bool m_scriptExecutionDisabled; | 90 bool m_scriptExecutionDisabled; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace blink | 93 } // namespace blink |
| 95 | 94 |
| 96 #endif | 95 #endif |
| OLD | NEW |