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

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

Issue 2723313003: Revert of //third_party/WebKit/Source/bindings: include v8 as a user, not system, header (Closed)
Patch Set: Created 3 years, 9 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>
12
13 #include "bindings/core/v8/DOMDataStore.h" 11 #include "bindings/core/v8/DOMDataStore.h"
14 #include "bindings/core/v8/IDLDictionaryBase.h" 12 #include "bindings/core/v8/IDLDictionaryBase.h"
15 #include "bindings/core/v8/ScriptState.h" 13 #include "bindings/core/v8/ScriptState.h"
16 #include "bindings/core/v8/ScriptValue.h" 14 #include "bindings/core/v8/ScriptValue.h"
17 #include "bindings/core/v8/ScriptWrappable.h" 15 #include "bindings/core/v8/ScriptWrappable.h"
18 #include "bindings/core/v8/V8Binding.h" 16 #include "bindings/core/v8/V8Binding.h"
19 #include "core/CoreExport.h" 17 #include "core/CoreExport.h"
20 #include "platform/heap/Handle.h" 18 #include "platform/heap/Handle.h"
21 #include "v8/include/v8.h"
22 #include "wtf/Forward.h" 19 #include "wtf/Forward.h"
20 #include <utility>
21 #include <v8.h>
23 22
24 namespace blink { 23 namespace blink {
25 24
26 class DOMWindow; 25 class DOMWindow;
27 class Dictionary; 26 class Dictionary;
28 class EventTarget; 27 class EventTarget;
29 28
30 // ScriptWrappable 29 // ScriptWrappable
31 30
32 inline v8::Local<v8::Value> ToV8(ScriptWrappable* impl, 31 inline v8::Local<v8::Value> ToV8(ScriptWrappable* impl,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Cannot define in ScriptValue because of the circular dependency between toV8 307 // Cannot define in ScriptValue because of the circular dependency between toV8
309 // and ScriptValue 308 // and ScriptValue
310 template <typename T> 309 template <typename T>
311 inline ScriptValue ScriptValue::from(ScriptState* scriptState, T&& value) { 310 inline ScriptValue ScriptValue::from(ScriptState* scriptState, T&& value) {
312 return ScriptValue(scriptState, ToV8(std::forward<T>(value), scriptState)); 311 return ScriptValue(scriptState, ToV8(std::forward<T>(value), scriptState));
313 } 312 }
314 313
315 } // namespace blink 314 } // namespace blink
316 315
317 #endif // ToV8_h 316 #endif // ToV8_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698