| 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 "DOMWindow.h" | 10 #include "DOMWindow.h" |
| 11 #include "Frame.h" | 11 #include "Frame.h" |
| 12 #include "InspectorBackend.h" | 12 #include "InspectorBackend.h" |
| 13 #include "InspectorController.h" | 13 #include "InspectorController.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 "SecurityOrigin.h" | 17 #include "SecurityOrigin.h" |
| 18 #include "Settings.h" | 18 #include "Settings.h" |
| 19 #include "V8Binding.h" | 19 #include "V8Binding.h" |
| 20 #include "V8CustomBinding.h" | 20 #include "V8CustomBinding.h" |
| 21 #include "V8Proxy.h" | 21 #include "V8Proxy.h" |
| 22 #include "V8Utilities.h" | 22 #include "V8Utilities.h" |
| 23 #include <wtf/OwnPtr.h> | 23 #include <wtf/OwnPtr.h> |
| 24 #include <wtf/Vector.h> | 24 #include <wtf/Vector.h> |
| 25 #undef LOG | 25 #undef LOG |
| 26 | 26 |
| 27 #include "webkit/api/public/WebDevToolsFrontendClient.h" | 27 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsFrontendClient.h" |
| 28 #include "webkit/api/public/WebFrame.h" | 28 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 29 #include "webkit/api/public/WebScriptSource.h" | 29 #include "third_party/WebKit/WebKit/chromium/public/WebScriptSource.h" |
| 30 #include "webkit/api/src/WebFrameImpl.h" | 30 #include "third_party/WebKit/WebKit/chromium/src/WebFrameImpl.h" |
| 31 #include "webkit/api/src/WebViewImpl.h" | 31 #include "third_party/WebKit/WebKit/chromium/src/WebViewImpl.h" |
| 32 #include "webkit/glue/devtools/bound_object.h" | 32 #include "webkit/glue/devtools/bound_object.h" |
| 33 #include "webkit/glue/devtools/debugger_agent.h" | 33 #include "webkit/glue/devtools/debugger_agent.h" |
| 34 #include "webkit/glue/devtools/devtools_rpc_js.h" | 34 #include "webkit/glue/devtools/devtools_rpc_js.h" |
| 35 #include "webkit/glue/devtools/tools_agent.h" | 35 #include "webkit/glue/devtools/tools_agent.h" |
| 36 #include "webkit/glue/glue_util.h" | 36 #include "webkit/glue/glue_util.h" |
| 37 #include "webkit/glue/webdevtoolsfrontend_impl.h" | 37 #include "webkit/glue/webdevtoolsfrontend_impl.h" |
| 38 | 38 |
| 39 using namespace WebCore; | 39 using namespace WebCore; |
| 40 using WebKit::WebDevToolsFrontend; | 40 using WebKit::WebDevToolsFrontend; |
| 41 using WebKit::WebDevToolsFrontendClient; | 41 using WebKit::WebDevToolsFrontendClient; |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // static | 403 // static |
| 404 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsDebuggerCommand( | 404 v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsDebuggerCommand( |
| 405 const v8::Arguments& args) { | 405 const v8::Arguments& args) { |
| 406 WebDevToolsFrontendImpl* frontend = static_cast<WebDevToolsFrontendImpl*>( | 406 WebDevToolsFrontendImpl* frontend = static_cast<WebDevToolsFrontendImpl*>( |
| 407 v8::External::Cast(*args.Data())->Value()); | 407 v8::External::Cast(*args.Data())->Value()); |
| 408 String command = WebCore::toWebCoreStringWithNullCheck(args[0]); | 408 String command = WebCore::toWebCoreStringWithNullCheck(args[0]); |
| 409 WebString std_command = webkit_glue::StringToWebString(command); | 409 WebString std_command = webkit_glue::StringToWebString(command); |
| 410 frontend->client_->sendDebuggerCommandToAgent(std_command); | 410 frontend->client_->sendDebuggerCommandToAgent(std_command); |
| 411 return v8::Undefined(); | 411 return v8::Undefined(); |
| 412 } | 412 } |
| OLD | NEW |