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

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: Producing image of view size 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
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 emulateDevice(
57 bool enabled, const WebKit::WebSize& device_size,
58 const WebKit::WebRect& view_rect, float device_scale_factor,
59 bool fit_to_view);
56 60
57 void OnAttach(); 61 void OnAttach();
58 void OnReattach(const std::string& agent_state); 62 void OnReattach(const std::string& agent_state);
59 void OnDetach(); 63 void OnDetach();
60 void OnDispatchOnInspectorBackend(const std::string& message); 64 void OnDispatchOnInspectorBackend(const std::string& message);
61 void OnInspectElement(int x, int y); 65 void OnInspectElement(int x, int y);
62 void OnAddMessageToConsole(ConsoleMessageLevel level, 66 void OnAddMessageToConsole(ConsoleMessageLevel level,
63 const std::string& message); 67 const std::string& message);
64 void ContinueProgram(); 68 void ContinueProgram();
65 void OnSetupDevToolsClient(); 69 void OnSetupDevToolsClient();
66 70
67 bool is_attached_; 71 bool is_attached_;
68 bool is_devtools_client_; 72 bool is_devtools_client_;
69 73
70 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 74 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
71 }; 75 };
72 76
73 } // namespace content 77 } // namespace content
74 78
75 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 79 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/devtools/devtools_agent.cc » ('j') | content/renderer/devtools/devtools_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698