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 | 9 |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 char phase, const unsigned char*, const char* name, unsigned long long id, | 65 char phase, const unsigned char*, const char* name, unsigned long long id, |
66 int numArgs, const char* const* argNames, const unsigned char* argTypes, | 66 int numArgs, const char* const* argNames, const unsigned char* argTypes, |
67 const unsigned long long* argValues, | 67 const unsigned long long* argValues, |
68 unsigned char flags, double timestamp); | 68 unsigned char flags, double timestamp); |
69 void resetTraceEventCallback() override; | 69 void resetTraceEventCallback() override; |
70 void setTraceEventCallback(const blink::WebString& category_filter, | 70 void setTraceEventCallback(const blink::WebString& category_filter, |
71 TraceEventCallback cb) override; | 71 TraceEventCallback cb) override; |
72 void enableTracing(const blink::WebString& category_filter) override; | 72 void enableTracing(const blink::WebString& category_filter) override; |
73 void disableTracing() override; | 73 void disableTracing() override; |
74 | 74 |
75 void enableDeviceEmulation( | |
76 const blink::WebDeviceEmulationParams& params) override; | |
77 void disableDeviceEmulation() override; | |
78 | |
79 void OnAttach(const std::string& host_id); | 75 void OnAttach(const std::string& host_id); |
80 void OnReattach(const std::string& host_id, | 76 void OnReattach(const std::string& host_id, |
81 const std::string& agent_state); | 77 const std::string& agent_state); |
82 void OnDetach(); | 78 void OnDetach(); |
83 void OnDispatchOnInspectorBackend(const std::string& message); | 79 void OnDispatchOnInspectorBackend(const std::string& message); |
84 void OnInspectElement(const std::string& host_id, int x, int y); | 80 void OnInspectElement(const std::string& host_id, int x, int y); |
85 void OnAddMessageToConsole(ConsoleMessageLevel level, | 81 void OnAddMessageToConsole(ConsoleMessageLevel level, |
86 const std::string& message); | 82 const std::string& message); |
87 void ContinueProgram(); | 83 void ContinueProgram(); |
88 void OnSetupDevToolsClient(); | 84 void OnSetupDevToolsClient(); |
(...skipping 18 matching lines...) Expand all Loading... |
107 RenderFrame* main_render_frame_; | 103 RenderFrame* main_render_frame_; |
108 | 104 |
109 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; | 105 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; |
110 | 106 |
111 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 107 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
112 }; | 108 }; |
113 | 109 |
114 } // namespace content | 110 } // namespace content |
115 | 111 |
116 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 112 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
OLD | NEW |