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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.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
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/LocalFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "config.h" 27 #include "sky/engine/config.h"
28 #include "core/frame/LocalDOMWindow.h" 28 #include "sky/engine/core/frame/LocalDOMWindow.h"
29 29
30 #include "bindings/core/v8/Dictionary.h" 30 #include <algorithm>
31 #include "bindings/core/v8/ExceptionMessages.h"
32 #include "bindings/core/v8/ExceptionState.h"
33 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
34 #include "bindings/core/v8/ScriptCallStackFactory.h"
35 #include "bindings/core/v8/ScriptController.h"
36 #include "bindings/core/v8/SerializedScriptValue.h"
37 #include "core/app/Application.h"
38 #include "core/css/CSSComputedStyleDeclaration.h"
39 #include "core/css/CSSRuleList.h"
40 #include "core/css/DOMWindowCSS.h"
41 #include "core/css/MediaQueryList.h"
42 #include "core/css/MediaQueryMatcher.h"
43 #include "core/css/StyleMedia.h"
44 #include "core/css/resolver/StyleResolver.h"
45 #include "core/dom/Document.h"
46 #include "core/dom/Element.h"
47 #include "core/dom/ExceptionCode.h"
48 #include "core/dom/ExecutionContext.h"
49 #include "core/dom/RequestAnimationFrameCallback.h"
50 #include "core/editing/Editor.h"
51 #include "core/events/DOMWindowEventQueue.h"
52 #include "core/events/EventListener.h"
53 #include "core/events/HashChangeEvent.h"
54 #include "core/events/PageTransitionEvent.h"
55 #include "core/events/PopStateEvent.h"
56 #include "core/frame/Console.h"
57 #include "core/frame/DOMWindowLifecycleNotifier.h"
58 #include "core/frame/FrameConsole.h"
59 #include "core/frame/FrameHost.h"
60 #include "core/frame/FrameView.h"
61 #include "core/frame/History.h"
62 #include "core/frame/LocalFrame.h"
63 #include "core/frame/Location.h"
64 #include "core/frame/Screen.h"
65 #include "core/frame/Settings.h"
66 #include "core/html/HTMLDocument.h"
67 #include "core/inspector/ConsoleMessage.h"
68 #include "core/inspector/ConsoleMessageStorage.h"
69 #include "core/inspector/InspectorTraceEvents.h"
70 #include "core/inspector/ScriptCallStack.h"
71 #include "core/loader/FrameLoaderClient.h"
72 #include "core/page/Chrome.h"
73 #include "core/page/ChromeClient.h"
74 #include "core/page/EventHandler.h"
75 #include "core/page/Page.h"
76 #include "core/page/WindowFocusAllowedIndicator.h"
77 #include "core/rendering/style/RenderStyle.h"
78 #include "platform/EventDispatchForbiddenScope.h"
79 #include "platform/PlatformScreen.h"
80 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 31 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
81 #include "platform/UserGestureIndicator.h" 32 #include "sky/engine/bindings/core/v8/Dictionary.h"
82 #include "platform/geometry/FloatRect.h" 33 #include "sky/engine/bindings/core/v8/ExceptionMessages.h"
83 #include "platform/weborigin/KURL.h" 34 #include "sky/engine/bindings/core/v8/ExceptionState.h"
84 #include "platform/weborigin/SecurityPolicy.h" 35 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h"
85 #include "public/platform/Platform.h" 36 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h"
86 #include "wtf/MainThread.h" 37 #include "sky/engine/bindings/core/v8/ScriptController.h"
87 #include "wtf/MathExtras.h" 38 #include "sky/engine/bindings/core/v8/SerializedScriptValue.h"
88 #include "wtf/text/WTFString.h" 39 #include "sky/engine/core/app/Application.h"
89 #include <algorithm> 40 #include "sky/engine/core/css/CSSComputedStyleDeclaration.h"
41 #include "sky/engine/core/css/CSSRuleList.h"
42 #include "sky/engine/core/css/DOMWindowCSS.h"
43 #include "sky/engine/core/css/MediaQueryList.h"
44 #include "sky/engine/core/css/MediaQueryMatcher.h"
45 #include "sky/engine/core/css/StyleMedia.h"
46 #include "sky/engine/core/css/resolver/StyleResolver.h"
47 #include "sky/engine/core/dom/Document.h"
48 #include "sky/engine/core/dom/Element.h"
49 #include "sky/engine/core/dom/ExceptionCode.h"
50 #include "sky/engine/core/dom/ExecutionContext.h"
51 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h"
52 #include "sky/engine/core/editing/Editor.h"
53 #include "sky/engine/core/events/DOMWindowEventQueue.h"
54 #include "sky/engine/core/events/EventListener.h"
55 #include "sky/engine/core/events/HashChangeEvent.h"
56 #include "sky/engine/core/events/PageTransitionEvent.h"
57 #include "sky/engine/core/events/PopStateEvent.h"
58 #include "sky/engine/core/frame/Console.h"
59 #include "sky/engine/core/frame/DOMWindowLifecycleNotifier.h"
60 #include "sky/engine/core/frame/FrameConsole.h"
61 #include "sky/engine/core/frame/FrameHost.h"
62 #include "sky/engine/core/frame/FrameView.h"
63 #include "sky/engine/core/frame/History.h"
64 #include "sky/engine/core/frame/LocalFrame.h"
65 #include "sky/engine/core/frame/Location.h"
66 #include "sky/engine/core/frame/Screen.h"
67 #include "sky/engine/core/frame/Settings.h"
68 #include "sky/engine/core/html/HTMLDocument.h"
69 #include "sky/engine/core/inspector/ConsoleMessage.h"
70 #include "sky/engine/core/inspector/ConsoleMessageStorage.h"
71 #include "sky/engine/core/inspector/InspectorTraceEvents.h"
72 #include "sky/engine/core/inspector/ScriptCallStack.h"
73 #include "sky/engine/core/loader/FrameLoaderClient.h"
74 #include "sky/engine/core/page/Chrome.h"
75 #include "sky/engine/core/page/ChromeClient.h"
76 #include "sky/engine/core/page/EventHandler.h"
77 #include "sky/engine/core/page/Page.h"
78 #include "sky/engine/core/page/WindowFocusAllowedIndicator.h"
79 #include "sky/engine/core/rendering/style/RenderStyle.h"
80 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
81 #include "sky/engine/platform/PlatformScreen.h"
82 #include "sky/engine/platform/UserGestureIndicator.h"
83 #include "sky/engine/platform/geometry/FloatRect.h"
84 #include "sky/engine/platform/weborigin/KURL.h"
85 #include "sky/engine/platform/weborigin/SecurityPolicy.h"
86 #include "sky/engine/public/platform/Platform.h"
87 #include "sky/engine/wtf/MainThread.h"
88 #include "sky/engine/wtf/MathExtras.h"
89 #include "sky/engine/wtf/text/WTFString.h"
90 90
91 using std::min; 91 using std::min;
92 using std::max; 92 using std::max;
93 93
94 namespace blink { 94 namespace blink {
95 95
96 static void disableSuddenTermination() 96 static void disableSuddenTermination()
97 { 97 {
98 blink::Platform::current()->suddenTerminationChanged(false); 98 blink::Platform::current()->suddenTerminationChanged(false);
99 } 99 }
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 { 797 {
798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier()); 798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier());
799 } 799 }
800 800
801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier() 801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier()
802 { 802 {
803 return DOMWindowLifecycleNotifier::create(this); 803 return DOMWindowLifecycleNotifier::create(this);
804 } 804 }
805 805
806 } // namespace blink 806 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698