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

Side by Side Diff: Source/bindings/core/v8/V8HiddenValue.h

Issue 1071963002: Replace Handle<> with Local<> in bindings/core/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/bindings/core/v8/V8HiddenValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 V8HiddenValue_h 5 #ifndef V8HiddenValue_h
6 #define V8HiddenValue_h 6 #define V8HiddenValue_h
7 7
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptPromiseProperties.h" 9 #include "bindings/core/v8/ScriptPromiseProperties.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
(...skipping 28 matching lines...) Expand all
39 V(state) \ 39 V(state) \
40 V(stringData) \ 40 V(stringData) \
41 V(thenableHiddenPromise) \ 41 V(thenableHiddenPromise) \
42 V(toStringString) \ 42 V(toStringString) \
43 V(injectedScriptNative) \ 43 V(injectedScriptNative) \
44 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ 44 SCRIPT_PROMISE_PROPERTIES(V, Promise) \
45 SCRIPT_PROMISE_PROPERTIES(V, Resolver) 45 SCRIPT_PROMISE_PROPERTIES(V, Resolver)
46 46
47 class CORE_EXPORT V8HiddenValue { 47 class CORE_EXPORT V8HiddenValue {
48 public: 48 public:
49 #define V8_DECLARE_METHOD(name) static v8::Handle<v8::String> name(v8::Isolate* isolate); 49 #define V8_DECLARE_METHOD(name) static v8::Local<v8::String> name(v8::Isolate* i solate);
50 V8_HIDDEN_VALUES(V8_DECLARE_METHOD); 50 V8_HIDDEN_VALUES(V8_DECLARE_METHOD);
51 #undef V8_DECLARE_METHOD 51 #undef V8_DECLARE_METHOD
52 52
53 static v8::Local<v8::Value> getHiddenValue(v8::Isolate*, v8::Handle<v8::Obje ct>, v8::Handle<v8::String>); 53 static v8::Local<v8::Value> getHiddenValue(v8::Isolate*, v8::Local<v8::Objec t>, v8::Local<v8::String>);
54 static bool setHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, v8::Handle< v8::String>, v8::Handle<v8::Value>); 54 static bool setHiddenValue(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8 ::String>, v8::Local<v8::Value>);
55 static bool deleteHiddenValue(v8::Isolate*, v8::Handle<v8::Object>, v8::Hand le<v8::String>); 55 static bool deleteHiddenValue(v8::Isolate*, v8::Local<v8::Object>, v8::Local <v8::String>);
56 static v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, ScriptWrappable*, v8::Handle<v8::String>); 56 static v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, ScriptWrappable*, v8::Local<v8::String>);
57 57
58 private: 58 private:
59 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; 59 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name;
60 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); 60 V8_HIDDEN_VALUES(V8_DECLARE_FIELD);
61 #undef V8_DECLARE_FIELD 61 #undef V8_DECLARE_FIELD
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // V8HiddenValue_h 66 #endif // V8HiddenValue_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/bindings/core/v8/V8HiddenValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698