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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ToV8.h

Issue 2815793002: [SharedArrayBuffer] Add "AllowShared" extended attribute, used for WebGL (Closed)
Patch Set: add layout tests Created 3 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
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 ToV8_h 5 #ifndef ToV8_h
6 #define ToV8_h 6 #define ToV8_h
7 7
8 // ToV8() provides C++ -> V8 conversion. Note that ToV8() can return an empty 8 // ToV8() provides C++ -> V8 conversion. Note that ToV8() can return an empty
9 // handle. Call sites must check IsEmpty() before using return value. 9 // handle. Call sites must check IsEmpty() before using return value.
10 10
11 #include <utility> 11 #include <utility>
12 12
13 #include "bindings/core/v8/DOMDataStore.h" 13 #include "bindings/core/v8/DOMDataStore.h"
14 #include "bindings/core/v8/IDLDictionaryBase.h" 14 #include "bindings/core/v8/IDLDictionaryBase.h"
15 #include "bindings/core/v8/ScriptState.h" 15 #include "bindings/core/v8/ScriptState.h"
16 #include "bindings/core/v8/ScriptValue.h" 16 #include "bindings/core/v8/ScriptValue.h"
17 #include "bindings/core/v8/ScriptWrappable.h" 17 #include "bindings/core/v8/ScriptWrappable.h"
18 #include "bindings/core/v8/V8Binding.h" 18 #include "bindings/core/v8/V8Binding.h"
19 #include "core/CoreExport.h" 19 #include "core/CoreExport.h"
20 #include "core/dom/NotShared.h" 20 #include "core/dom/ArrayBufferViewHelpers.h"
21 #include "platform/heap/Handle.h" 21 #include "platform/heap/Handle.h"
22 #include "platform/wtf/Forward.h" 22 #include "platform/wtf/Forward.h"
23 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
24 24
25 namespace blink { 25 namespace blink {
26 26
27 class DOMWindow; 27 class DOMWindow;
28 class Dictionary; 28 class Dictionary;
29 class EventTarget; 29 class EventTarget;
30 30
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // Cannot define in ScriptValue because of the circular dependency between toV8 331 // Cannot define in ScriptValue because of the circular dependency between toV8
332 // and ScriptValue 332 // and ScriptValue
333 template <typename T> 333 template <typename T>
334 inline ScriptValue ScriptValue::From(ScriptState* script_state, T&& value) { 334 inline ScriptValue ScriptValue::From(ScriptState* script_state, T&& value) {
335 return ScriptValue(script_state, ToV8(std::forward<T>(value), script_state)); 335 return ScriptValue(script_state, ToV8(std::forward<T>(value), script_state));
336 } 336 }
337 337
338 } // namespace blink 338 } // namespace blink
339 339
340 #endif // ToV8_h 340 #endif // ToV8_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698