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

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

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « webkit/glue/webdevtoolsclient.h ('k') | webkit/glue/webframe_impl.h » ('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 #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"
(...skipping 22 matching lines...) Expand all
33 #include "webkit/glue/devtools/tools_agent.h" 33 #include "webkit/glue/devtools/tools_agent.h"
34 #include "webkit/glue/glue_util.h" 34 #include "webkit/glue/glue_util.h"
35 #include "webkit/glue/webdevtoolsclient_delegate.h" 35 #include "webkit/glue/webdevtoolsclient_delegate.h"
36 #include "webkit/glue/webdevtoolsclient_impl.h" 36 #include "webkit/glue/webdevtoolsclient_impl.h"
37 #include "webkit/glue/webview_impl.h" 37 #include "webkit/glue/webview_impl.h"
38 38
39 using namespace WebCore; 39 using namespace WebCore;
40 using WebKit::WebFrame; 40 using WebKit::WebFrame;
41 using WebKit::WebScriptSource; 41 using WebKit::WebScriptSource;
42 using WebKit::WebString; 42 using WebKit::WebString;
43 using WebKit::WebView;
43 44
44 static v8::Local<v8::String> ToV8String(const String& s) { 45 static v8::Local<v8::String> ToV8String(const String& s) {
45 if (s.isNull()) 46 if (s.isNull())
46 return v8::Local<v8::String>(); 47 return v8::Local<v8::String>();
47 48
48 return v8::String::New(reinterpret_cast<const uint16_t*>(s.characters()), 49 return v8::String::New(reinterpret_cast<const uint16_t*>(s.characters()),
49 s.length()); 50 s.length());
50 } 51 }
51 52
52 DEFINE_RPC_JS_BOUND_OBJ(DebuggerAgent, DEBUGGER_AGENT_STRUCT, 53 DEFINE_RPC_JS_BOUND_OBJ(DebuggerAgent, DEBUGGER_AGENT_STRUCT,
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // static 413 // static
413 v8::Handle<v8::Value> WebDevToolsClientImpl::JsDebuggerCommand( 414 v8::Handle<v8::Value> WebDevToolsClientImpl::JsDebuggerCommand(
414 const v8::Arguments& args) { 415 const v8::Arguments& args) {
415 WebDevToolsClientImpl* client = static_cast<WebDevToolsClientImpl*>( 416 WebDevToolsClientImpl* client = static_cast<WebDevToolsClientImpl*>(
416 v8::External::Cast(*args.Data())->Value()); 417 v8::External::Cast(*args.Data())->Value());
417 String command = WebCore::toWebCoreStringWithNullCheck(args[0]); 418 String command = WebCore::toWebCoreStringWithNullCheck(args[0]);
418 WebString std_command = webkit_glue::StringToWebString(command); 419 WebString std_command = webkit_glue::StringToWebString(command);
419 client->delegate_->SendDebuggerCommandToAgent(std_command); 420 client->delegate_->SendDebuggerCommandToAgent(std_command);
420 return v8::Undefined(); 421 return v8::Undefined();
421 } 422 }
OLDNEW
« no previous file with comments | « webkit/glue/webdevtoolsclient.h ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698