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 "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class DOMWindowCSS; | 25 class DOMWindowCSS; |
26 class Document; | 26 class Document; |
27 class Element; | 27 class Element; |
28 class Frame; | 28 class Frame; |
29 class FrameRequestCallback; | 29 class FrameRequestCallback; |
30 class History; | 30 class History; |
31 class IdleRequestCallback; | 31 class IdleRequestCallback; |
32 class IdleRequestOptions; | 32 class IdleRequestOptions; |
33 class Location; | 33 class Location; |
34 class LocalDOMWindow; | 34 class LocalDOMWindow; |
| 35 class MessageEvent; |
35 class MediaQueryList; | 36 class MediaQueryList; |
36 class Navigator; | 37 class Navigator; |
37 class Screen; | 38 class Screen; |
38 class ScriptState; | 39 class ScriptState; |
39 class ScrollToOptions; | 40 class ScrollToOptions; |
40 class SerializedScriptValue; | 41 class SerializedScriptValue; |
41 class Storage; | 42 class Storage; |
42 class StyleMedia; | 43 class StyleMedia; |
43 | 44 |
44 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { | 45 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationstart, webkitAnimation
Start); | 211 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationstart, webkitAnimation
Start); |
211 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnima
tionIteration); | 212 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, webkitAnima
tionIteration); |
212 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, webkitAnimationEn
d); | 213 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, webkitAnimationEn
d); |
213 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, webkitTransition
End); | 214 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, webkitTransition
End); |
214 | 215 |
215 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 216 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
216 | 217 |
217 protected: | 218 protected: |
218 DOMWindow(); | 219 DOMWindow(); |
219 | 220 |
| 221 virtual void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> t
arget, Document* source) = 0; |
| 222 |
220 // Set to true when close() has been called. Needed for | 223 // Set to true when close() has been called. Needed for |
221 // |window.closed| determinism; having it return 'true' | 224 // |window.closed| determinism; having it return 'true' |
222 // only after the layout widget's deferred window close | 225 // only after the layout widget's deferred window close |
223 // operation has been performed, exposes (confusing) | 226 // operation has been performed, exposes (confusing) |
224 // implementation details to scripts. | 227 // implementation details to scripts. |
225 bool m_windowIsClosing; | 228 bool m_windowIsClosing; |
226 | 229 |
227 private: | 230 private: |
228 mutable Member<Location> m_location; | 231 mutable Member<Location> m_location; |
229 }; | 232 }; |
230 | 233 |
231 } // namespace blink | 234 } // namespace blink |
232 | 235 |
233 #endif // DOMWindow_h | 236 #endif // DOMWindow_h |
OLD | NEW |