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

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

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase Created 7 years, 2 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 | « no previous file | 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data); 46 virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data);
47 47
48 virtual int hostIdentifier(); 48 virtual int hostIdentifier();
49 virtual void saveAgentRuntimeState(const WebKit::WebString& state); 49 virtual void saveAgentRuntimeState(const WebKit::WebString& state);
50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* 50 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop*
51 createClientMessageLoop(); 51 createClientMessageLoop();
52 virtual void clearBrowserCache(); 52 virtual void clearBrowserCache();
53 virtual void clearBrowserCookies(); 53 virtual void clearBrowserCookies();
54 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor); 54 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor);
55 virtual void setTraceEventCallback(TraceEventCallback cb); 55 virtual void setTraceEventCallback(TraceEventCallback cb);
56 virtual void enableDeviceEmulation(
57 const WebKit::WebSize& device_size,
58 const WebKit::WebRect& view_rect, float device_scale_factor,
59 bool fit_to_view);
60 virtual void disableDeviceEmulation();
56 61
57 void OnAttach(); 62 void OnAttach();
58 void OnReattach(const std::string& agent_state); 63 void OnReattach(const std::string& agent_state);
59 void OnDetach(); 64 void OnDetach();
60 void OnDispatchOnInspectorBackend(const std::string& message); 65 void OnDispatchOnInspectorBackend(const std::string& message);
61 void OnInspectElement(int x, int y); 66 void OnInspectElement(int x, int y);
62 void OnAddMessageToConsole(ConsoleMessageLevel level, 67 void OnAddMessageToConsole(ConsoleMessageLevel level,
63 const std::string& message); 68 const std::string& message);
64 void ContinueProgram(); 69 void ContinueProgram();
65 void OnSetupDevToolsClient(); 70 void OnSetupDevToolsClient();
66 71
67 bool is_attached_; 72 bool is_attached_;
68 bool is_devtools_client_; 73 bool is_devtools_client_;
69 74
70 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 75 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
71 }; 76 };
72 77
73 } // namespace content 78 } // namespace content
74 79
75 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 80 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698