| 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 13 matching lines...) Expand all Loading... |
| 24 class CustomElementRegistry; | 24 class CustomElementRegistry; |
| 25 class DOMSelection; | 25 class DOMSelection; |
| 26 class DOMVisualViewport; | 26 class DOMVisualViewport; |
| 27 class Document; | 27 class Document; |
| 28 class Element; | 28 class Element; |
| 29 class External; | 29 class External; |
| 30 class FrameRequestCallback; | 30 class FrameRequestCallback; |
| 31 class History; | 31 class History; |
| 32 class IdleRequestCallback; | 32 class IdleRequestCallback; |
| 33 class IdleRequestOptions; | 33 class IdleRequestOptions; |
| 34 class InputDeviceCapabilitiesConstants; |
| 34 class Location; | 35 class Location; |
| 35 class LocalDOMWindow; | 36 class LocalDOMWindow; |
| 36 class MessageEvent; | 37 class MessageEvent; |
| 37 class MediaQueryList; | 38 class MediaQueryList; |
| 38 class Navigator; | 39 class Navigator; |
| 39 class Screen; | 40 class Screen; |
| 40 class ScriptState; | 41 class ScriptState; |
| 41 class ScrollToOptions; | 42 class ScrollToOptions; |
| 42 class SerializedScriptValue; | 43 class SerializedScriptValue; |
| 43 class StyleMedia; | 44 class StyleMedia; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 webkitAnimationStart); | 250 webkitAnimationStart); |
| 250 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, | 251 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationiteration, |
| 251 webkitAnimationIteration); | 252 webkitAnimationIteration); |
| 252 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, | 253 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkitanimationend, |
| 253 webkitAnimationEnd); | 254 webkitAnimationEnd); |
| 254 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, | 255 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(webkittransitionend, |
| 255 webkitTransitionEnd); | 256 webkitTransitionEnd); |
| 256 | 257 |
| 257 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 258 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
| 258 | 259 |
| 260 InputDeviceCapabilitiesConstants* getInputDeviceCapabilities(); |
| 261 |
| 259 protected: | 262 protected: |
| 260 explicit DOMWindow(Frame&); | 263 explicit DOMWindow(Frame&); |
| 261 | 264 |
| 262 virtual void schedulePostMessage(MessageEvent*, | 265 virtual void schedulePostMessage(MessageEvent*, |
| 263 PassRefPtr<SecurityOrigin> target, | 266 PassRefPtr<SecurityOrigin> target, |
| 264 Document* source) = 0; | 267 Document* source) = 0; |
| 265 | 268 |
| 266 void disconnectFromFrame() { m_frame = nullptr; } | 269 void disconnectFromFrame() { m_frame = nullptr; } |
| 267 | 270 |
| 268 private: | 271 private: |
| 269 Member<Frame> m_frame; | 272 Member<Frame> m_frame; |
| 273 Member<InputDeviceCapabilitiesConstants> m_inputCapabilities; |
| 270 mutable Member<Location> m_location; | 274 mutable Member<Location> m_location; |
| 271 Member<External> m_external; | 275 Member<External> m_external; |
| 272 | 276 |
| 273 // Set to true when close() has been called. Needed for | 277 // Set to true when close() has been called. Needed for |
| 274 // |window.closed| determinism; having it return 'true' | 278 // |window.closed| determinism; having it return 'true' |
| 275 // only after the layout widget's deferred window close | 279 // only after the layout widget's deferred window close |
| 276 // operation has been performed, exposes (confusing) | 280 // operation has been performed, exposes (confusing) |
| 277 // implementation details to scripts. | 281 // implementation details to scripts. |
| 278 bool m_windowIsClosing; | 282 bool m_windowIsClosing; |
| 279 | 283 |
| 280 }; | 284 }; |
| 281 | 285 |
| 282 } // namespace blink | 286 } // namespace blink |
| 283 | 287 |
| 284 #endif // DOMWindow_h | 288 #endif // DOMWindow_h |
| OLD | NEW |