| 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); |
| 22 public: | 23 public: |
| 23 ~DevToolsEmulator(); | 24 ~DevToolsEmulator(); |
| 24 static PassOwnPtrWillBeRawPtr<DevToolsEmulator> create(WebViewImpl*); | 25 static PassOwnPtrWillBeRawPtr<DevToolsEmulator> create(WebViewImpl*); |
| 25 DECLARE_TRACE(); | 26 DECLARE_TRACE(); |
| 26 | 27 |
| 27 void setEmulationAgent(InspectorEmulationAgent*); | 28 void setEmulationAgent(InspectorEmulationAgent*); |
| 28 void viewportChanged(); | 29 void viewportChanged(); |
| 29 | 30 |
| 30 // Settings overrides. | 31 // Settings overrides. |
| 31 void setTextAutosizingEnabled(bool); | 32 void setTextAutosizingEnabled(bool); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 OwnPtr<IntPoint> m_lastPinchAnchorDip; | 77 OwnPtr<IntPoint> m_lastPinchAnchorDip; |
| 77 | 78 |
| 78 bool m_embedderScriptEnabled; | 79 bool m_embedderScriptEnabled; |
| 79 bool m_scriptExecutionDisabled; | 80 bool m_scriptExecutionDisabled; |
| 80 bool m_hidePinchScrollbarsNearMinScale; | 81 bool m_hidePinchScrollbarsNearMinScale; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace blink | 84 } // namespace blink |
| 84 | 85 |
| 85 #endif | 86 #endif |
| OLD | NEW |