OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void setTraceEventCallback(const blink::WebString& category_filter, | 68 virtual void setTraceEventCallback(const blink::WebString& category_filter, |
69 TraceEventCallback cb) OVERRIDE; | 69 TraceEventCallback cb) OVERRIDE; |
70 virtual void enableTracing(const blink::WebString& category_filter) OVERRIDE; | 70 virtual void enableTracing(const blink::WebString& category_filter) OVERRIDE; |
71 virtual void disableTracing() OVERRIDE; | 71 virtual void disableTracing() OVERRIDE; |
72 virtual void startGPUEventsRecording() OVERRIDE; | 72 virtual void startGPUEventsRecording() OVERRIDE; |
73 virtual void stopGPUEventsRecording() OVERRIDE; | 73 virtual void stopGPUEventsRecording() OVERRIDE; |
74 | 74 |
75 virtual void enableDeviceEmulation( | 75 virtual void enableDeviceEmulation( |
76 const blink::WebDeviceEmulationParams& params) OVERRIDE; | 76 const blink::WebDeviceEmulationParams& params) OVERRIDE; |
77 virtual void disableDeviceEmulation() OVERRIDE; | 77 virtual void disableDeviceEmulation() OVERRIDE; |
78 virtual void setTouchEventEmulationEnabled(bool enabled, | |
79 bool allow_pinch) OVERRIDE; | |
80 | 78 |
81 void OnAttach(const std::string& host_id); | 79 void OnAttach(const std::string& host_id); |
82 void OnReattach(const std::string& host_id, | 80 void OnReattach(const std::string& host_id, |
83 const std::string& agent_state); | 81 const std::string& agent_state); |
84 void OnDetach(); | 82 void OnDetach(); |
85 void OnDispatchOnInspectorBackend(const std::string& message); | 83 void OnDispatchOnInspectorBackend(const std::string& message); |
86 void OnInspectElement(const std::string& host_id, int x, int y); | 84 void OnInspectElement(const std::string& host_id, int x, int y); |
87 void OnAddMessageToConsole(ConsoleMessageLevel level, | 85 void OnAddMessageToConsole(ConsoleMessageLevel level, |
88 const std::string& message); | 86 const std::string& message); |
89 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks); | 87 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks); |
(...skipping 18 matching lines...) Expand all Loading... |
108 bool paused_in_mouse_move_; | 106 bool paused_in_mouse_move_; |
109 | 107 |
110 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; | 108 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; |
111 | 109 |
112 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 110 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
113 }; | 111 }; |
114 | 112 |
115 } // namespace content | 113 } // namespace content |
116 | 114 |
117 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 115 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
OLD | NEW |