OLD | NEW |
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 DOMWindow_h | 5 #ifndef DOMWindow_h |
6 #define DOMWindow_h | 6 #define DOMWindow_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
10 #include "core/frame/DOMWindowBase64.h" | 10 #include "core/frame/DOMWindowBase64.h" |
11 #include "core/frame/Location.h" | 11 #include "core/frame/Location.h" |
12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
13 #include "platform/scroll/ScrollableArea.h" | 13 #include "platform/scroll/ScrollableArea.h" |
14 | 14 |
15 #include "wtf/Forward.h" | 15 #include "wtf/Forward.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class ApplicationCache; | 19 class ApplicationCache; |
20 class BarProp; | 20 class BarProp; |
21 class CSSRuleList; | 21 class CSSRuleList; |
22 class CSSStyleDeclaration; | 22 class CSSStyleDeclaration; |
23 class Console; | |
24 class CustomElementsRegistry; | 23 class CustomElementsRegistry; |
25 class DOMSelection; | 24 class DOMSelection; |
26 class DOMWindowCSS; | 25 class DOMWindowCSS; |
27 class Document; | 26 class Document; |
28 class Element; | 27 class Element; |
29 class Frame; | 28 class Frame; |
30 class FrameRequestCallback; | 29 class FrameRequestCallback; |
31 class History; | 30 class History; |
32 class IdleRequestCallback; | 31 class IdleRequestCallback; |
33 class IdleRequestOptions; | 32 class IdleRequestOptions; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // WebKit extensions | 122 // WebKit extensions |
124 virtual double devicePixelRatio() const = 0; | 123 virtual double devicePixelRatio() const = 0; |
125 | 124 |
126 virtual ApplicationCache* applicationCache() const = 0; | 125 virtual ApplicationCache* applicationCache() const = 0; |
127 | 126 |
128 // This is the interface orientation in degrees. Some examples are: | 127 // This is the interface orientation in degrees. Some examples are: |
129 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 128 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
130 // 90 is when rotated counter clockwise. | 129 // 90 is when rotated counter clockwise. |
131 virtual int orientation() const = 0; | 130 virtual int orientation() const = 0; |
132 | 131 |
133 virtual Console* console() const = 0; | |
134 | |
135 virtual DOMSelection* getSelection() = 0; | 132 virtual DOMSelection* getSelection() = 0; |
136 | 133 |
137 void focus(ExecutionContext*); | 134 void focus(ExecutionContext*); |
138 virtual void blur() = 0; | 135 virtual void blur() = 0; |
139 void close(ExecutionContext*); | 136 void close(ExecutionContext*); |
140 virtual void print() = 0; | 137 virtual void print() = 0; |
141 virtual void stop() = 0; | 138 virtual void stop() = 0; |
142 | 139 |
143 virtual void alert(const String& message = String()) = 0; | 140 virtual void alert(const String& message = String()) = 0; |
144 virtual bool confirm(const String& message) = 0; | 141 virtual bool confirm(const String& message) = 0; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // implementation details to scripts. | 224 // implementation details to scripts. |
228 bool m_windowIsClosing; | 225 bool m_windowIsClosing; |
229 | 226 |
230 private: | 227 private: |
231 mutable Member<Location> m_location; | 228 mutable Member<Location> m_location; |
232 }; | 229 }; |
233 | 230 |
234 } // namespace blink | 231 } // namespace blink |
235 | 232 |
236 #endif // DOMWindow_h | 233 #endif // DOMWindow_h |
OLD | NEW |