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

Side by Side Diff: sky/engine/bindings/core/v8/V8Initializer.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "sky/engine/config.h"
27 #include "bindings/core/v8/V8Initializer.h" 27 #include "sky/engine/bindings/core/v8/V8Initializer.h"
28 28
29 #include "bindings/core/v8/DOMWrapperWorld.h"
30 #include "bindings/core/v8/ScriptCallStackFactory.h"
31 #include "bindings/core/v8/ScriptController.h"
32 #include "bindings/core/v8/ScriptProfiler.h"
33 #include "bindings/core/v8/V8Binding.h"
34 #include "bindings/core/v8/V8DOMException.h" 29 #include "bindings/core/v8/V8DOMException.h"
35 #include "bindings/core/v8/V8ErrorEvent.h" 30 #include "bindings/core/v8/V8ErrorEvent.h"
36 #include "bindings/core/v8/V8ErrorHandler.h"
37 #include "bindings/core/v8/V8GCController.h"
38 #include "bindings/core/v8/V8History.h" 31 #include "bindings/core/v8/V8History.h"
39 #include "bindings/core/v8/V8Location.h" 32 #include "bindings/core/v8/V8Location.h"
40 #include "bindings/core/v8/V8PerContextData.h"
41 #include "bindings/core/v8/V8Window.h" 33 #include "bindings/core/v8/V8Window.h"
42 #include "core/dom/Document.h" 34 #include "sky/engine/bindings/core/v8/DOMWrapperWorld.h"
43 #include "core/dom/ExceptionCode.h" 35 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h"
44 #include "core/frame/ConsoleTypes.h" 36 #include "sky/engine/bindings/core/v8/ScriptController.h"
45 #include "core/frame/LocalDOMWindow.h" 37 #include "sky/engine/bindings/core/v8/ScriptProfiler.h"
46 #include "core/frame/LocalFrame.h" 38 #include "sky/engine/bindings/core/v8/V8Binding.h"
47 #include "core/inspector/ScriptCallStack.h" 39 #include "sky/engine/bindings/core/v8/V8ErrorHandler.h"
48 #include "platform/EventDispatchForbiddenScope.h" 40 #include "sky/engine/bindings/core/v8/V8GCController.h"
49 #include "platform/TraceEvent.h" 41 #include "sky/engine/bindings/core/v8/V8PerContextData.h"
50 #include "public/platform/Platform.h" 42 #include "sky/engine/core/dom/Document.h"
43 #include "sky/engine/core/dom/ExceptionCode.h"
44 #include "sky/engine/core/frame/ConsoleTypes.h"
45 #include "sky/engine/core/frame/LocalDOMWindow.h"
46 #include "sky/engine/core/frame/LocalFrame.h"
47 #include "sky/engine/core/inspector/ScriptCallStack.h"
48 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
49 #include "sky/engine/platform/TraceEvent.h"
50 #include "sky/engine/public/platform/Platform.h"
51 #include "sky/engine/wtf/RefPtr.h"
52 #include "sky/engine/wtf/text/WTFString.h"
51 #include "v8/include/v8-debug.h" 53 #include "v8/include/v8-debug.h"
52 #include "wtf/RefPtr.h"
53 #include "wtf/text/WTFString.h"
54 54
55 namespace blink { 55 namespace blink {
56 56
57 static LocalFrame* findFrame(v8::Local<v8::Object> host, v8::Local<v8::Value> da ta, v8::Isolate* isolate) 57 static LocalFrame* findFrame(v8::Local<v8::Object> host, v8::Local<v8::Value> da ta, v8::Isolate* isolate)
58 { 58 {
59 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); 59 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data);
60 60
61 if (V8Window::wrapperTypeInfo.equals(type)) { 61 if (V8Window::wrapperTypeInfo.equals(type)) {
62 v8::Handle<v8::Object> windowWrapper = V8Window::findInstanceInPrototype Chain(host, isolate); 62 v8::Handle<v8::Object> windowWrapper = V8Window::findInstanceInPrototype Chain(host, isolate);
63 if (windowWrapper.IsEmpty()) 63 if (windowWrapper.IsEmpty())
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 v8::V8::SetFatalErrorHandler(reportFatalErrorInMainThread); 217 v8::V8::SetFatalErrorHandler(reportFatalErrorInMainThread);
218 v8::V8::AddMessageListener(messageHandlerInMainThread); 218 v8::V8::AddMessageListener(messageHandlerInMainThread);
219 v8::V8::SetFailedAccessCheckCallbackFunction(failedAccessCheckCallbackInMain Thread); 219 v8::V8::SetFailedAccessCheckCallbackFunction(failedAccessCheckCallbackInMain Thread);
220 220
221 isolate->SetEventLogger(timerTraceProfilerInMainThread); 221 isolate->SetEventLogger(timerTraceProfilerInMainThread);
222 222
223 ScriptProfiler::initialize(); 223 ScriptProfiler::initialize();
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/V8HiddenValue.cpp ('k') | sky/engine/bindings/core/v8/V8MutationCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698