| OLD | NEW |
| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "Document.h" | 9 #include "Document.h" |
| 10 #include "EventListener.h" | 10 #include "EventListener.h" |
| 11 #include "InspectorController.h" | 11 #include "InspectorController.h" |
| 12 #include "InspectorFrontend.h" | 12 #include "InspectorFrontend.h" |
| 13 #include "InspectorResource.h" | 13 #include "InspectorResource.h" |
| 14 #include "Node.h" | 14 #include "Node.h" |
| 15 #include "Page.h" | 15 #include "Page.h" |
| 16 #include "PlatformString.h" | 16 #include "PlatformString.h" |
| 17 #include "ScriptObject.h" | 17 #include "ScriptObject.h" |
| 18 #include "ScriptState.h" | 18 #include "ScriptState.h" |
| 19 #include "ScriptValue.h" | 19 #include "ScriptValue.h" |
| 20 #include "v8_proxy.h" | 20 #include "V8Binding.h" |
| 21 #include "V8Proxy.h" |
| 21 #include <wtf/OwnPtr.h> | 22 #include <wtf/OwnPtr.h> |
| 22 #undef LOG | 23 #undef LOG |
| 23 | 24 |
| 24 #include "V8Binding.h" | |
| 25 #include "base/values.h" | 25 #include "base/values.h" |
| 26 #include "webkit/api/public/WebDataSource.h" | 26 #include "webkit/api/public/WebDataSource.h" |
| 27 #include "webkit/api/public/WebURL.h" | 27 #include "webkit/api/public/WebURL.h" |
| 28 #include "webkit/api/public/WebURLRequest.h" | 28 #include "webkit/api/public/WebURLRequest.h" |
| 29 #include "webkit/glue/devtools/bound_object.h" | 29 #include "webkit/glue/devtools/bound_object.h" |
| 30 #include "webkit/glue/devtools/debugger_agent_impl.h" | 30 #include "webkit/glue/devtools/debugger_agent_impl.h" |
| 31 #include "webkit/glue/devtools/debugger_agent_manager.h" | 31 #include "webkit/glue/devtools/debugger_agent_manager.h" |
| 32 #include "webkit/glue/devtools/dom_agent_impl.h" | 32 #include "webkit/glue/devtools/dom_agent_impl.h" |
| 33 #include "webkit/glue/glue_util.h" | 33 #include "webkit/glue/glue_util.h" |
| 34 #include "webkit/glue/webdevtoolsagent_delegate.h" | 34 #include "webkit/glue/webdevtoolsagent_delegate.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 return v8::Undefined(); | 310 return v8::Undefined(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 // static | 313 // static |
| 314 v8::Handle<v8::Value> WebDevToolsAgentImpl::JsGetNodeForId( | 314 v8::Handle<v8::Value> WebDevToolsAgentImpl::JsGetNodeForId( |
| 315 const v8::Arguments& args) { | 315 const v8::Arguments& args) { |
| 316 int node_id = static_cast<int>(args[0]->NumberValue()); | 316 int node_id = static_cast<int>(args[0]->NumberValue()); |
| 317 WebDevToolsAgentImpl* agent = static_cast<WebDevToolsAgentImpl*>( | 317 WebDevToolsAgentImpl* agent = static_cast<WebDevToolsAgentImpl*>( |
| 318 v8::External::Cast(*args.Data())->Value()); | 318 v8::External::Cast(*args.Data())->Value()); |
| 319 Node* node = agent->dom_agent_impl_->GetNodeForId(node_id); | 319 Node* node = agent->dom_agent_impl_->GetNodeForId(node_id); |
| 320 return V8Proxy::ToV8Object(V8ClassIndex::NODE, node); | 320 return V8Proxy::convertToV8Object(V8ClassIndex::NODE, node); |
| 321 } | 321 } |
| 322 | 322 |
| 323 // static | 323 // static |
| 324 void WebDevToolsAgent::ExecuteDebuggerCommand( | 324 void WebDevToolsAgent::ExecuteDebuggerCommand( |
| 325 const std::string& command, | 325 const std::string& command, |
| 326 int caller_id) { | 326 int caller_id) { |
| 327 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id); | 327 DebuggerAgentManager::ExecuteDebuggerCommand(command, caller_id); |
| 328 } | 328 } |
| 329 | 329 |
| 330 // static | 330 // static |
| 331 void WebDevToolsAgent::SetMessageLoopDispatchHandler( | 331 void WebDevToolsAgent::SetMessageLoopDispatchHandler( |
| 332 MessageLoopDispatchHandler handler) { | 332 MessageLoopDispatchHandler handler) { |
| 333 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); | 333 DebuggerAgentManager::SetMessageLoopDispatchHandler(handler); |
| 334 } | 334 } |
| OLD | NEW |