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

Side by Side Diff: Source/bindings/modules/v8/ToV8ForModules.h

Issue 1117753005: Replace v8::Handle with v8::Local in Source/bindings/* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp ('k') | no next file » | 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 #ifndef ToV8ForModules_h 5 #ifndef ToV8ForModules_h
6 #define ToV8ForModules_h 6 #define ToV8ForModules_h
7 7
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/webdatabase/sqlite/SQLValue.h" 10 #include "modules/webdatabase/sqlite/SQLValue.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class IDBAny; 14 class IDBAny;
15 class IDBKey; 15 class IDBKey;
16 class IDBKeyPath; 16 class IDBKeyPath;
17 17
18 inline v8::Handle<v8::Value> toV8(const SQLValue& sqlValue, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 18 inline v8::Local<v8::Value> toV8(const SQLValue& sqlValue, v8::Local<v8::Object> creationContext, v8::Isolate* isolate)
19 { 19 {
20 switch (sqlValue.type()) { 20 switch (sqlValue.type()) {
21 case SQLValue::NullValue: 21 case SQLValue::NullValue:
22 return v8::Null(isolate); 22 return v8::Null(isolate);
23 case SQLValue::NumberValue: 23 case SQLValue::NumberValue:
24 return v8::Number::New(isolate, sqlValue.number()); 24 return v8::Number::New(isolate, sqlValue.number());
25 case SQLValue::StringValue: 25 case SQLValue::StringValue:
26 return v8String(isolate, sqlValue.string()); 26 return v8String(isolate, sqlValue.string());
27 } 27 }
28 ASSERT_NOT_REACHED(); 28 ASSERT_NOT_REACHED();
29 return v8::Local<v8::Value>(); 29 return v8::Local<v8::Value>();
30 } 30 }
31 31
32 v8::Local<v8::Value> toV8(const IDBKeyPath&, v8::Local<v8::Object> creationConte xt, v8::Isolate*); 32 v8::Local<v8::Value> toV8(const IDBKeyPath&, v8::Local<v8::Object> creationConte xt, v8::Isolate*);
33 MODULES_EXPORT v8::Local<v8::Value> toV8(const IDBKey*, v8::Local<v8::Object> cr eationContext, v8::Isolate*); 33 MODULES_EXPORT v8::Local<v8::Value> toV8(const IDBKey*, v8::Local<v8::Object> cr eationContext, v8::Isolate*);
34 v8::Local<v8::Value> toV8(const IDBAny*, v8::Local<v8::Object> creationContext, v8::Isolate*); 34 v8::Local<v8::Value> toV8(const IDBAny*, v8::Local<v8::Object> creationContext, v8::Isolate*);
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // ToV8ForModules_h 38 #endif // ToV8ForModules_h
39 39
OLDNEW
« no previous file with comments | « Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698