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

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

Issue 113100: DevTools: Activate inspector window on break / exception. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 WebDevToolsClientDelegate* delegate); 36 WebDevToolsClientDelegate* delegate);
37 virtual ~WebDevToolsClientImpl(); 37 virtual ~WebDevToolsClientImpl();
38 38
39 // DevToolsRpc::Delegate implementation. 39 // DevToolsRpc::Delegate implementation.
40 virtual void SendRpcMessage(const std::string& raw_msg); 40 virtual void SendRpcMessage(const std::string& raw_msg);
41 41
42 // WebDevToolsClient implementation. 42 // WebDevToolsClient implementation.
43 virtual void DispatchMessageFromAgent(const std::string& raw_msg); 43 virtual void DispatchMessageFromAgent(const std::string& raw_msg);
44 44
45 private: 45 private:
46 static void InitProtoFunction(v8::Handle<v8::ObjectTemplate> proto,
47 const char* name,
48 v8::InvocationCallback callback,
49 v8::Handle<v8::Signature> signature);
46 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args); 50 static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args);
47 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args); 51 static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args);
48 static v8::Handle<v8::Value> JsSearch(const v8::Arguments& args); 52 static v8::Handle<v8::Value> JsActivateWindow(const v8::Arguments& args);
49 static v8::Persistent<v8::FunctionTemplate> host_template_; 53 static v8::Persistent<v8::FunctionTemplate> host_template_;
50 static HashMap<WebCore::Page*, WebDevToolsClientImpl*> page_to_client_; 54 static HashMap<WebCore::Page*, WebDevToolsClientImpl*> page_to_client_;
51 55
52 static void InitBoundObject(); 56 static void InitBoundObject();
53 57
54 WebViewImpl* web_view_impl_; 58 WebViewImpl* web_view_impl_;
55 WebDevToolsClientDelegate* delegate_; 59 WebDevToolsClientDelegate* delegate_;
56 OwnPtr<CppBoundClass> debugger_command_executor_obj_; 60 OwnPtr<CppBoundClass> debugger_command_executor_obj_;
57 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_; 61 OwnPtr<JsDebuggerAgentBoundObj> debugger_agent_obj_;
58 OwnPtr<JsDomAgentBoundObj> dom_agent_obj_; 62 OwnPtr<JsDomAgentBoundObj> dom_agent_obj_;
59 OwnPtr<JsNetAgentBoundObj> net_agent_obj_; 63 OwnPtr<JsNetAgentBoundObj> net_agent_obj_;
60 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_; 64 OwnPtr<JsToolsAgentBoundObj> tools_agent_obj_;
61 bool loaded_; 65 bool loaded_;
62 Vector<std::string> pending_incoming_messages_; 66 Vector<std::string> pending_incoming_messages_;
63 WebCore::Page* page_; 67 WebCore::Page* page_;
64 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl); 68 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClientImpl);
65 }; 69 };
66 70
67 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_IMPL_H_ 71 #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