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

Side by Side Diff: Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2007-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" 54 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
55 #include "bindings/core/v8/custom/V8Uint8ClampedArrayCustom.h" 55 #include "bindings/core/v8/custom/V8Uint8ClampedArrayCustom.h"
56 #include "core/events/EventTarget.h" 56 #include "core/events/EventTarget.h"
57 #include "core/frame/LocalDOMWindow.h" 57 #include "core/frame/LocalDOMWindow.h"
58 #include "core/inspector/InjectedScript.h" 58 #include "core/inspector/InjectedScript.h"
59 #include "core/inspector/InjectedScriptHost.h" 59 #include "core/inspector/InjectedScriptHost.h"
60 #include "core/inspector/InspectorDOMAgent.h" 60 #include "core/inspector/InspectorDOMAgent.h"
61 #include "core/inspector/JavaScriptCallFrame.h" 61 #include "core/inspector/JavaScriptCallFrame.h"
62 #include "platform/JSONValues.h" 62 #include "platform/JSONValues.h"
63 63
64 namespace WebCore { 64 namespace blink {
65 65
66 Node* InjectedScriptHost::scriptValueAsNode(ScriptState* scriptState, ScriptValu e value) 66 Node* InjectedScriptHost::scriptValueAsNode(ScriptState* scriptState, ScriptValu e value)
67 { 67 {
68 ScriptState::Scope scope(scriptState); 68 ScriptState::Scope scope(scriptState);
69 if (!value.isObject() || value.isNull()) 69 if (!value.isObject() || value.isNull())
70 return 0; 70 return 0;
71 return V8Node::toNative(v8::Handle<v8::Object>::Cast(value.v8Value())); 71 return V8Node::toNative(v8::Handle<v8::Object>::Cast(value.v8Value()));
72 } 72 }
73 73
74 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* scriptState, Node * node) 74 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* scriptState, Node * node)
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 size_t argc = info.Length() - 2; 487 size_t argc = info.Length() - 2;
488 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu e>[argc]); 488 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu e>[argc]);
489 for (size_t i = 0; i < argc; ++i) 489 for (size_t i = 0; i < argc; ++i)
490 argv[i] = info[i + 2]; 490 argv[i] = info[i + 2];
491 491
492 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get()); 492 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get());
493 debugServer.unmuteWarningsAndDeprecations(); 493 debugServer.unmuteWarningsAndDeprecations();
494 v8SetReturnValue(info, result); 494 v8SetReturnValue(info, result);
495 } 495 }
496 496
497 } // namespace WebCore 497 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8ImageDataCustom.cpp ('k') | Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698