| 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/InspectorFrontend.h" | 8 #include "core/InspectorFrontend.h" |
| 9 #include "core/inspector/InspectorBaseAgent.h" | 9 #include "core/inspector/InspectorBaseAgent.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // InspectorBackendDispatcher::EmulationCommandHandler implementation. | 25 // InspectorBackendDispatcher::EmulationCommandHandler implementation. |
| 26 void resetScrollAndPageScaleFactor(ErrorString*) override; | 26 void resetScrollAndPageScaleFactor(ErrorString*) override; |
| 27 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; | 27 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; |
| 28 void setScriptExecutionDisabled(ErrorString*, bool) override; | 28 void setScriptExecutionDisabled(ErrorString*, bool) override; |
| 29 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf
iguration) override; | 29 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf
iguration) override; |
| 30 void setEmulatedMedia(ErrorString*, const String&) override; | 30 void setEmulatedMedia(ErrorString*, const String&) override; |
| 31 | 31 |
| 32 // InspectorBaseAgent overrides. | 32 // InspectorBaseAgent overrides. |
| 33 void disable(ErrorString*) override; | 33 void disable(ErrorString*) override; |
| 34 void restore() override; | 34 void restore() override; |
| 35 void discardAgent() override; |
| 35 void didCommitLoadForLocalFrame(LocalFrame*) override; | 36 void didCommitLoadForLocalFrame(LocalFrame*) override; |
| 36 | 37 |
| 37 DECLARE_VIRTUAL_TRACE(); | 38 DECLARE_VIRTUAL_TRACE(); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 explicit InspectorEmulationAgent(WebViewImpl*); | 41 explicit InspectorEmulationAgent(WebViewImpl*); |
| 41 | 42 |
| 42 WebViewImpl* m_webViewImpl; | 43 WebViewImpl* m_webViewImpl; |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 | 46 |
| 46 } // namespace blink | 47 } // namespace blink |
| 47 | 48 |
| 48 | 49 |
| 49 #endif // !defined(InspectorEmulationAgent_h) | 50 #endif // !defined(InspectorEmulationAgent_h) |
| OLD | NEW |