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

Unified Diff: webkit/glue/webdevtoolsclient_impl.cc

Issue 100332: DevTools: Implement search in scripts. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webdevtoolsclient_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webdevtoolsclient_impl.cc
===================================================================
--- webkit/glue/webdevtoolsclient_impl.cc (revision 15203)
+++ webkit/glue/webdevtoolsclient_impl.cc (working copy)
@@ -19,6 +19,7 @@
#undef LOG
#include "V8Binding.h"
+#include "v8_custom.h"
#include "v8_proxy.h"
#include "v8_utility.h"
#include "base/string_util.h"
@@ -112,6 +113,13 @@
v8::Handle<v8::Value>(),
default_signature),
static_cast<v8::PropertyAttribute>(v8::DontDelete));
+ proto->Set(
+ v8::String::New("search"),
+ v8::FunctionTemplate::New(
+ WebDevToolsClientImpl::JsSearch,
+ v8::Handle<v8::Value>(),
+ default_signature),
+ static_cast<v8::PropertyAttribute>(v8::DontDelete));
host_template_->SetClassName(v8::String::New("DevToolsHost"));
}
@@ -201,6 +209,7 @@
}
Node* node = V8Proxy::DOMWrapperToNode<Node>(args[2]);
if (!node || !node->attached()) {
+ return v8::Undefined();
}
Page* page = V8Proxy::retrieveActiveFrame()->page();
@@ -229,3 +238,9 @@
client->pending_incoming_messages_.clear();
return v8::Undefined();
}
+
+// static
+v8::Handle<v8::Value> WebDevToolsClientImpl::JsSearch(
+ const v8::Arguments& args) {
+ return WebCore::V8Custom::v8InspectorControllerSearchCallback(args);
+}
« no previous file with comments | « webkit/glue/webdevtoolsclient_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698