| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int numArgs, const char* const* argNames, const unsigned char* argTypes, | 63 int numArgs, const char* const* argNames, const unsigned char* argTypes, |
| 64 const unsigned long long* argValues, | 64 const unsigned long long* argValues, |
| 65 unsigned char flags, double timestamp); | 65 unsigned char flags, double timestamp); |
| 66 virtual void resetTraceEventCallback() OVERRIDE; | 66 virtual void resetTraceEventCallback() OVERRIDE; |
| 67 virtual void setTraceEventCallback(const blink::WebString& category_filter, | 67 virtual void setTraceEventCallback(const blink::WebString& category_filter, |
| 68 TraceEventCallback cb) OVERRIDE; | 68 TraceEventCallback cb) OVERRIDE; |
| 69 virtual void startGPUEventsRecording() OVERRIDE; | 69 virtual void startGPUEventsRecording() OVERRIDE; |
| 70 virtual void stopGPUEventsRecording() OVERRIDE; | 70 virtual void stopGPUEventsRecording() OVERRIDE; |
| 71 | 71 |
| 72 virtual void enableDeviceEmulation( | 72 virtual void enableDeviceEmulation( |
| 73 const blink::WebRect& device_rect, | |
| 74 const blink::WebRect& view_rect, float device_scale_factor, | |
| 75 bool fit_to_view); | |
| 76 virtual void enableDeviceEmulation( | |
| 77 const blink::WebDeviceEmulationParams& params) OVERRIDE; | 73 const blink::WebDeviceEmulationParams& params) OVERRIDE; |
| 78 virtual void disableDeviceEmulation() OVERRIDE; | 74 virtual void disableDeviceEmulation() OVERRIDE; |
| 79 virtual void setTouchEventEmulationEnabled(bool enabled, | 75 virtual void setTouchEventEmulationEnabled(bool enabled, |
| 80 bool allow_pinch) OVERRIDE; | 76 bool allow_pinch) OVERRIDE; |
| 81 | 77 |
| 82 void OnAttach(); | 78 void OnAttach(); |
| 83 void OnReattach(const std::string& agent_state); | 79 void OnReattach(const std::string& agent_state); |
| 84 void OnDetach(); | 80 void OnDetach(); |
| 85 void OnDispatchOnInspectorBackend(const std::string& message); | 81 void OnDispatchOnInspectorBackend(const std::string& message); |
| 86 void OnInspectElement(int x, int y); | 82 void OnInspectElement(int x, int y); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 107 int32 gpu_route_id_; | 103 int32 gpu_route_id_; |
| 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 |