| OLD | NEW |
| 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 SKY_ENGINE_BINDINGS_CORE_V8_V8HIDDENVALUE_H_ |
| 6 #define V8HiddenValue_h | 6 #define SKY_ENGINE_BINDINGS_CORE_V8_V8HIDDENVALUE_H_ |
| 7 | 7 |
| 8 #include "sky/engine/bindings/core/v8/ScopedPersistent.h" | 8 #include "sky/engine/bindings/core/v8/ScopedPersistent.h" |
| 9 #include "sky/engine/bindings/core/v8/ScriptPromiseProperties.h" | 9 #include "sky/engine/bindings/core/v8/ScriptPromiseProperties.h" |
| 10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ScriptWrappable; | 14 class ScriptWrappable; |
| 15 | 15 |
| 16 #define V8_HIDDEN_VALUES(V) \ | 16 #define V8_HIDDEN_VALUES(V) \ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*,
ScriptWrappable*, v8::Handle<v8::String>); | 54 static v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*,
ScriptWrappable*, v8::Handle<v8::String>); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; | 57 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; |
| 58 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); | 58 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); |
| 59 #undef V8_DECLARE_FIELD | 59 #undef V8_DECLARE_FIELD |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // V8HiddenValue_h | 64 #endif // SKY_ENGINE_BINDINGS_CORE_V8_V8HIDDENVALUE_H_ |
| OLD | NEW |