| 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 InspectorEmulationAgent_h | 5 #ifndef InspectorEmulationAgent_h |
| 6 #define InspectorEmulationAgent_h | 6 #define InspectorEmulationAgent_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
| 9 #include "core/inspector/protocol/Emulation.h" | 9 #include "core/inspector/protocol/Emulation.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 static InspectorEmulationAgent* create(WebLocalFrameImpl*, Client*); | 26 static InspectorEmulationAgent* create(WebLocalFrameImpl*, Client*); |
| 27 ~InspectorEmulationAgent() override; | 27 ~InspectorEmulationAgent() override; |
| 28 | 28 |
| 29 // protocol::Dispatcher::EmulationCommandHandler implementation. | 29 // protocol::Dispatcher::EmulationCommandHandler implementation. |
| 30 void resetPageScaleFactor(ErrorString*) override; | 30 void resetPageScaleFactor(ErrorString*) override; |
| 31 void setPageScaleFactor(ErrorString*, double in_pageScaleFactor) override; | 31 void setPageScaleFactor(ErrorString*, double in_pageScaleFactor) override; |
| 32 void setScriptExecutionDisabled(ErrorString*, bool in_value) override; | 32 void setScriptExecutionDisabled(ErrorString*, bool in_value) override; |
| 33 void setTouchEmulationEnabled(ErrorString*, bool in_enabled, const protocol:
:Maybe<String>& in_configuration) override; | 33 void setTouchEmulationEnabled(ErrorString*, bool in_enabled, const protocol:
:Maybe<String>& in_configuration) override; |
| 34 void setEmulatedMedia(ErrorString*, const String& in_media) override; | 34 void setEmulatedMedia(ErrorString*, const String& in_media) override; |
| 35 void setCPUThrottlingRate(ErrorString*, double in_rate) override; | 35 void setCPUThrottlingRate(ErrorString*, double in_rate) override; |
| 36 void setVirtualTimePolicy(ErrorString*, const String& in_policy) override; |
| 36 | 37 |
| 37 // InspectorBaseAgent overrides. | 38 // InspectorBaseAgent overrides. |
| 38 void disable(ErrorString*) override; | 39 void disable(ErrorString*) override; |
| 39 void restore() override; | 40 void restore() override; |
| 40 | 41 |
| 41 DECLARE_VIRTUAL_TRACE(); | 42 DECLARE_VIRTUAL_TRACE(); |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); | 45 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); |
| 45 WebViewImpl* webViewImpl(); | 46 WebViewImpl* webViewImpl(); |
| 46 | 47 |
| 47 Member<WebLocalFrameImpl> m_webLocalFrameImpl; | 48 Member<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 48 Client* m_client; | 49 Client* m_client; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace blink | 52 } // namespace blink |
| 52 | 53 |
| 53 #endif // !defined(InspectorEmulationAgent_h) | 54 #endif // !defined(InspectorEmulationAgent_h) |
| OLD | NEW |