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

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

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and mac popups compilation Created 5 years, 9 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_browser.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 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698