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

Side by Side Diff: webkit/glue/webdevtoolsclient_impl.h

Issue 173480: DevTools: Remove base/values dependency from devtools. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « webkit/glue/webdevtoolsclient_delegate.h ('k') | webkit/glue/webdevtoolsclient_impl.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_
6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ 6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <wtf/HashMap.h> 10 #include <wtf/HashMap.h>
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 WebDevToolsClientImpl( 37 WebDevToolsClientImpl(
38 WebViewImpl* web_view_impl, 38 WebViewImpl* web_view_impl,
39 WebDevToolsClientDelegate* delegate, 39 WebDevToolsClientDelegate* delegate,
40 const std::string& application_locale); 40 const std::string& application_locale);
41 virtual ~WebDevToolsClientImpl(); 41 virtual ~WebDevToolsClientImpl();
42 42
43 // DevToolsRpc::Delegate implementation. 43 // DevToolsRpc::Delegate implementation.
44 virtual void SendRpcMessage(const std::string& class_name, 44 virtual void SendRpcMessage(const std::string& class_name,
45 const std::string& method_name, 45 const std::string& method_name,
46 const std::string& raw_msg); 46 const std::string& param1,
47 const std::string& param2,
48 const std::string& param3);
47 49
48 // WebDevToolsClient implementation. 50 // WebDevToolsClient implementation.
49 virtual void DispatchMessageFromAgent(const std::string& class_name, 51 virtual void DispatchMessageFromAgent(const std::string& class_name,
50 const std::string& method_name, 52 const std::string& method_name,
51 const std::string& raw_msg); 53 const std::string& param1,
54 const std::string& param2,
55 const std::string& param3);
52 56
53 private: 57 private:
54 void AddResourceSourceToFrame(int resource_id, 58 void AddResourceSourceToFrame(int resource_id,
55 String mime_type, 59 String mime_type,
56 WebCore::Node* frame); 60 WebCore::Node* frame);
57 61
58 void ExecuteScript(const std::string& expr); 62 void ExecuteScript(const Vector<std::string>& v);
59 static v8::Handle<v8::Value> JsReset(const v8::Arguments& args); 63 static v8::Handle<v8::Value> JsReset(const v8::Arguments& args);
60 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args); 64 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args);
61 static v8::Handle<v8::Value> JsAddResourceSourceToFrame( 65 static v8::Handle<v8::Value> JsAddResourceSourceToFrame(
62 const v8::Arguments& args); 66 const v8::Arguments& args);
63 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args); 67 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args);
64 static v8::Handle<v8::Value> JsGetPlatform(const v8::Arguments& args); 68 static v8::Handle<v8::Value> JsGetPlatform(const v8::Arguments& args);
65 69
66 static v8::Handle<v8::Value> JsActivateWindow(const v8::Arguments& args); 70 static v8::Handle<v8::Value> JsActivateWindow(const v8::Arguments& args);
67 static v8::Handle<v8::Value> JsCloseWindow(const v8::Arguments& args); 71 static v8::Handle<v8::Value> JsCloseWindow(const v8::Arguments& args);
68 static v8::Handle<v8::Value> JsDockWindow(const v8::Arguments& args); 72 static v8::Handle<v8::Value> JsDockWindow(const v8::Arguments& args);
69 static v8::Handle<v8::Value> JsUndockWindow(const v8::Arguments& args); 73 static v8::Handle<v8::Value> JsUndockWindow(const v8::Arguments& args);
70 static v8::Handle<v8::Value> JsToggleInspectElementMode( 74 static v8::Handle<v8::Value> JsToggleInspectElementMode(
71 const v8::Arguments& args); 75 const v8::Arguments& args);
72 static v8::Handle<v8::Value> JsGetApplicationLocale( 76 static v8::Handle<v8::Value> JsGetApplicationLocale(
73 const v8::Arguments& args); 77 const v8::Arguments& args);
74 78
75 WebViewImpl* web_view_impl_; 79 WebViewImpl* web_view_impl_;
76 WebDevToolsClientDelegate* delegate_; 80 WebDevToolsClientDelegate* delegate_;
77 String application_locale_; 81 String application_locale_;
78 OwnPtr<CppBoundClass> debugger_command_executor_obj_; 82 OwnPtr<CppBoundClass> debugger_command_executor_obj_;
79 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; 83 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_;
80 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; 84 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_;
81 bool loaded_; 85 bool loaded_;
82 Vector<std::string> pending_incoming_messages_; 86 Vector<Vector<std::string> > pending_incoming_messages_;
83 OwnPtr<BoundObject> dev_tools_host_; 87 OwnPtr<BoundObject> dev_tools_host_;
84 OwnPtr<ToolsAgentNativeDelegateImpl> tools_agent_native_delegate_impl_; 88 OwnPtr<ToolsAgentNativeDelegateImpl> tools_agent_native_delegate_impl_;
85 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl); 89 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl);
86 }; 90 };
87 91
88 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ 92 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webdevtoolsclient_delegate.h ('k') | webkit/glue/webdevtoolsclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698