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

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

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

Powered by Google App Engine
This is Rietveld 408576698