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

Unified Diff: chrome/browser/debugger/debugger_node.cc

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/browser/debugger/debugger_io_socket.cc ('k') | chrome/browser/debugger/debugger_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_node.cc
===================================================================
--- chrome/browser/debugger/debugger_node.cc (revision 10992)
+++ chrome/browser/debugger/debugger_node.cc (working copy)
@@ -69,12 +69,14 @@
}
v8::Local<v8::ObjectTemplate> instance = templ->InstanceTemplate();
if (IsObject()) {
- instance->SetNamedPropertyHandler(&DebuggerNode::NodeGetter, 0, 0, 0, 0, node);
+ instance->SetNamedPropertyHandler(&DebuggerNode::NodeGetter, 0, 0, 0, 0,
+ node);
// TODO(erikkay): verify that the interceptor does not have to be
// behind the object
}
if (IsCollection()) {
- instance->SetIndexedPropertyHandler(&DebuggerNode::NodeIndex, 0, 0, 0, 0, node);
+ instance->SetIndexedPropertyHandler(&DebuggerNode::NodeIndex, 0, 0, 0, 0,
+ node);
}
v8::Local<v8::Object> ret = instance->NewInstance();
v8::Persistent<v8::Object> p = v8::Persistent<v8::Object>::New(ret);
@@ -84,8 +86,8 @@
v8::Handle<v8::Value> DebuggerNode::NodeGetter(v8::Local<v8::String> prop,
const v8::AccessorInfo& info) {
- DebuggerNodeWrapper* w =
- static_cast<DebuggerNodeWrapper*>(v8::External::Cast(*info.Data())->Value());
+ DebuggerNodeWrapper* w = static_cast<DebuggerNodeWrapper*>(v8::External::Cast(
+ *info.Data())->Value());
DebuggerNode* n = w->node();
if (n->IsValid() && n->IsObject()) {
return n->PropGetter(prop, info);
@@ -96,8 +98,8 @@
v8::Handle<v8::Value> DebuggerNode::NodeIndex(uint32_t index,
const v8::AccessorInfo& info) {
- DebuggerNodeWrapper* w =
- static_cast<DebuggerNodeWrapper*>(v8::External::Cast(*info.Data())->Value());
+ DebuggerNodeWrapper* w = static_cast<DebuggerNodeWrapper*>(v8::External::Cast(
+ *info.Data())->Value());
DebuggerNode* n = w->node();
if (n->IsValid() && n->IsCollection()) {
return n->IndexGetter(index, info);
@@ -107,8 +109,8 @@
}
v8::Handle<v8::Value> DebuggerNode::NodeFunc(const v8::Arguments& args) {
- DebuggerNodeWrapper* w =
- static_cast<DebuggerNodeWrapper*>(v8::External::Cast(*args.Data())->Value());
+ DebuggerNodeWrapper* w = static_cast<DebuggerNodeWrapper*>(v8::External::Cast(
+ *args.Data())->Value());
DebuggerNode* n = w->node();
if (n->IsValid() && n->IsFunction()) {
return n->Function(args);
@@ -137,11 +139,13 @@
return node->NewInstance();
} else if (prop->Equals(v8::String::New("setDebuggerReady"))) {
FunctionNode<DebuggerShell>* f =
- new FunctionNode<DebuggerShell>(DebuggerShell::SetDebuggerReady, debugger_);
+ new FunctionNode<DebuggerShell>(DebuggerShell::SetDebuggerReady,
+ debugger_);
return f->NewInstance();
} else if (prop->Equals(v8::String::New("setDebuggerBreak"))) {
FunctionNode<DebuggerShell>* f =
- new FunctionNode<DebuggerShell>(DebuggerShell::SetDebuggerBreak, debugger_);
+ new FunctionNode<DebuggerShell>(DebuggerShell::SetDebuggerBreak,
+ debugger_);
return f->NewInstance();
} else if (prop->Equals(v8::String::New("foo"))) {
return v8::Undefined();
« no previous file with comments | « chrome/browser/debugger/debugger_io_socket.cc ('k') | chrome/browser/debugger/debugger_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698