Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: content/renderer/devtools/devtools_agent.h

Issue 474213002: DevTools: control touch emulation from the browser side only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment addressed. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698