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

Unified Diff: Source/bindings/core/v8/V8NPUtils.cpp

Issue 351423002: Moved files under Source/bindings/v8 to Source/bindings/core/v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8NodeFilterCondition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8NPUtils.cpp
diff --git a/Source/bindings/v8/V8NPUtils.cpp b/Source/bindings/core/v8/V8NPUtils.cpp
similarity index 93%
rename from Source/bindings/v8/V8NPUtils.cpp
rename to Source/bindings/core/v8/V8NPUtils.cpp
index df6eefe3b429d368590adf0737e627f0f5533981..5afe311a5ddcd0796e0b883a7a6ab9ad4973b968 100644
--- a/Source/bindings/v8/V8NPUtils.cpp
+++ b/Source/bindings/core/v8/V8NPUtils.cpp
@@ -29,13 +29,13 @@
*/
#include "config.h"
-#include "bindings/v8/V8NPUtils.h"
+#include "bindings/core/v8/V8NPUtils.h"
-#include "bindings/v8/NPV8Object.h"
-#include "bindings/v8/V8Binding.h"
-#include "bindings/v8/V8NPObject.h"
-#include "bindings/v8/npruntime_impl.h"
-#include "bindings/v8/npruntime_priv.h"
+#include "bindings/core/v8/NPV8Object.h"
+#include "bindings/core/v8/V8Binding.h"
+#include "bindings/core/v8/V8NPObject.h"
+#include "bindings/core/v8/npruntime_impl.h"
+#include "bindings/core/v8/npruntime_priv.h"
#include "core/frame/LocalDOMWindow.h"
#include "wtf/text/WTFString.h"
@@ -54,15 +54,15 @@ void convertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject* owner, NP
if (object.IsEmpty())
return;
- if (object->IsNumber())
+ if (object->IsNumber()) {
DOUBLE_TO_NPVARIANT(object->NumberValue(), *result);
- else if (object->IsBoolean())
+ } else if (object->IsBoolean()) {
BOOLEAN_TO_NPVARIANT(object->BooleanValue(), *result);
- else if (object->IsNull())
+ } else if (object->IsNull()) {
NULL_TO_NPVARIANT(*result);
- else if (object->IsUndefined())
+ } else if (object->IsUndefined()) {
VOID_TO_NPVARIANT(*result);
- else if (object->IsString()) {
+ } else if (object->IsString()) {
v8::Handle<v8::String> str = object.As<v8::String>();
int length = str->Utf8Length() + 1;
char* utf8Chars = reinterpret_cast<char*>(malloc(length));
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8NodeFilterCondition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698