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

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

Issue 138163016: [DevTools] Touch emulation in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-aura compile Created 6 years, 8 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
« no previous file with comments | « content/content_tests.gypi ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 73 const blink::WebRect& device_rect,
74 const blink::WebRect& view_rect, float device_scale_factor, 74 const blink::WebRect& view_rect, float device_scale_factor,
75 bool fit_to_view); 75 bool fit_to_view);
76 virtual void enableDeviceEmulation( 76 virtual void enableDeviceEmulation(
77 const blink::WebDeviceEmulationParams& params); 77 const blink::WebDeviceEmulationParams& params);
78 virtual void disableDeviceEmulation(); 78 virtual void disableDeviceEmulation();
79 virtual void setTouchEventEmulationEnabled(bool enabled, bool allow_pinch);
79 80
80 void OnAttach(); 81 void OnAttach();
81 void OnReattach(const std::string& agent_state); 82 void OnReattach(const std::string& agent_state);
82 void OnDetach(); 83 void OnDetach();
83 void OnDispatchOnInspectorBackend(const std::string& message); 84 void OnDispatchOnInspectorBackend(const std::string& message);
84 void OnInspectElement(int x, int y); 85 void OnInspectElement(int x, int y);
85 void OnAddMessageToConsole(ConsoleMessageLevel level, 86 void OnAddMessageToConsole(ConsoleMessageLevel level,
86 const std::string& message); 87 const std::string& message);
87 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks); 88 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks);
88 void ContinueProgram(); 89 void ContinueProgram();
(...skipping 16 matching lines...) Expand all
105 int32 gpu_route_id_; 106 int32 gpu_route_id_;
106 107
107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; 108 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 110 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 115 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698