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 "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
10 #include "wtf/OwnPtr.h" | 10 #include "wtf/OwnPtr.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class InspectorEmulationAgent; | 14 class InspectorEmulationAgent; |
15 class IntPoint; | 15 class IntPoint; |
16 class WebInputEvent; | 16 class WebInputEvent; |
17 class WebViewImpl; | 17 class WebViewImpl; |
18 | 18 |
19 struct WebDeviceEmulationParams; | 19 struct WebDeviceEmulationParams; |
20 | 20 |
21 class DevToolsEmulator final : public NoBaseWillBeGarbageCollectedFinalized<DevT
oolsEmulator> { | 21 class DevToolsEmulator final : public NoBaseWillBeGarbageCollectedFinalized<DevT
oolsEmulator> { |
22 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DevToolsEmulator); | |
23 public: | 22 public: |
24 ~DevToolsEmulator(); | 23 ~DevToolsEmulator(); |
25 static PassOwnPtrWillBeRawPtr<DevToolsEmulator> create(WebViewImpl*); | 24 static PassOwnPtrWillBeRawPtr<DevToolsEmulator> create(WebViewImpl*); |
26 DECLARE_TRACE(); | 25 DECLARE_TRACE(); |
27 | 26 |
28 void setEmulationAgent(InspectorEmulationAgent*); | 27 void setEmulationAgent(InspectorEmulationAgent*); |
29 void viewportChanged(); | 28 void viewportChanged(); |
30 | 29 |
31 // Settings overrides. | 30 // Settings overrides. |
32 void setTextAutosizingEnabled(bool); | 31 void setTextAutosizingEnabled(bool); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 76 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
78 | 77 |
79 bool m_embedderScriptEnabled; | 78 bool m_embedderScriptEnabled; |
80 bool m_scriptExecutionDisabled; | 79 bool m_scriptExecutionDisabled; |
81 bool m_hidePinchScrollbarsNearMinScale; | 80 bool m_hidePinchScrollbarsNearMinScale; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace blink | 83 } // namespace blink |
85 | 84 |
86 #endif | 85 #endif |
OLD | NEW |