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/web/WebDeviceEmulationParams.h" | 10 #include "public/web/WebDeviceEmulationParams.h" |
11 #include "wtf/Forward.h" | 11 #include "wtf/Forward.h" |
12 #include "wtf/OwnPtr.h" | 12 #include "wtf/OwnPtr.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class InspectorEmulationAgent; | 16 class InspectorEmulationAgent; |
17 class IntPoint; | 17 class IntPoint; |
18 class WebInputEvent; | 18 class WebInputEvent; |
19 class WebViewImpl; | 19 class WebViewImpl; |
20 | 20 |
21 class DevToolsEmulator final : public GarbageCollectedFinalized<DevToolsEmulator
> { | 21 class DevToolsEmulator final : public GarbageCollectedFinalized<DevToolsEmulator
> { |
22 public: | 22 public: |
23 ~DevToolsEmulator(); | 23 ~DevToolsEmulator(); |
24 static RawPtr<DevToolsEmulator> create(WebViewImpl*); | 24 static DevToolsEmulator* create(WebViewImpl*); |
25 DECLARE_TRACE(); | 25 DECLARE_TRACE(); |
26 | 26 |
27 // Settings overrides. | 27 // Settings overrides. |
28 void setTextAutosizingEnabled(bool); | 28 void setTextAutosizingEnabled(bool); |
29 void setDeviceScaleAdjustment(float); | 29 void setDeviceScaleAdjustment(float); |
30 void setPreferCompositingToLCDTextEnabled(bool); | 30 void setPreferCompositingToLCDTextEnabled(bool); |
31 void setUseMobileViewportStyle(bool); | 31 void setUseMobileViewportStyle(bool); |
32 void setPluginsEnabled(bool); | 32 void setPluginsEnabled(bool); |
33 void setScriptEnabled(bool); | 33 void setScriptEnabled(bool); |
34 void setDoubleTapToZoomEnabled(bool); | 34 void setDoubleTapToZoomEnabled(bool); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 OwnPtr<IntPoint> m_lastPinchAnchorCss; | 86 OwnPtr<IntPoint> m_lastPinchAnchorCss; |
87 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 87 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
88 | 88 |
89 bool m_embedderScriptEnabled; | 89 bool m_embedderScriptEnabled; |
90 bool m_scriptExecutionDisabled; | 90 bool m_scriptExecutionDisabled; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif | 95 #endif |
OLD | NEW |