| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "platform/Supplementable.h" | 34 #include "platform/Supplementable.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Assertions.h" | 36 #include "wtf/Assertions.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include <memory> | 38 #include <memory> |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class CustomElementRegistry; | 42 class CustomElementRegistry; |
| 43 class DOMWindowEventQueue; | 43 class DOMWindowEventQueue; |
| 44 class DOMWindowProperty; | |
| 45 class DocumentInit; | 44 class DocumentInit; |
| 46 class EventQueue; | 45 class EventQueue; |
| 47 class FrameConsole; | 46 class FrameConsole; |
| 48 class MessageEvent; | 47 class MessageEvent; |
| 49 class PostMessageTimer; | 48 class PostMessageTimer; |
| 50 class SecurityOrigin; | 49 class SecurityOrigin; |
| 51 class SourceLocation; | 50 class SourceLocation; |
| 52 class DOMVisualViewport; | 51 class DOMVisualViewport; |
| 53 | 52 |
| 54 enum PageshowEventPersistence { | 53 enum PageshowEventPersistence { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int requestAnimationFrame(FrameRequestCallback*) override; | 161 int requestAnimationFrame(FrameRequestCallback*) override; |
| 163 int webkitRequestAnimationFrame(FrameRequestCallback*) override; | 162 int webkitRequestAnimationFrame(FrameRequestCallback*) override; |
| 164 void cancelAnimationFrame(int id) override; | 163 void cancelAnimationFrame(int id) override; |
| 165 int requestIdleCallback(IdleRequestCallback*, | 164 int requestIdleCallback(IdleRequestCallback*, |
| 166 const IdleRequestOptions&) override; | 165 const IdleRequestOptions&) override; |
| 167 void cancelIdleCallback(int id) override; | 166 void cancelIdleCallback(int id) override; |
| 168 CustomElementRegistry* customElements(ScriptState*) const override; | 167 CustomElementRegistry* customElements(ScriptState*) const override; |
| 169 CustomElementRegistry* customElements() const; | 168 CustomElementRegistry* customElements() const; |
| 170 CustomElementRegistry* maybeCustomElements() const; | 169 CustomElementRegistry* maybeCustomElements() const; |
| 171 | 170 |
| 172 void registerProperty(DOMWindowProperty*); | |
| 173 void unregisterProperty(DOMWindowProperty*); | |
| 174 | |
| 175 void registerEventListenerObserver(EventListenerObserver*); | 171 void registerEventListenerObserver(EventListenerObserver*); |
| 176 | 172 |
| 177 void frameDestroyed(); | 173 void contextDestroyed(); |
| 178 void reset(); | 174 void reset(); |
| 179 | 175 |
| 180 unsigned pendingUnloadEventListeners() const; | 176 unsigned pendingUnloadEventListeners() const; |
| 181 | 177 |
| 182 bool allowPopUp(); // Call on first window, not target window. | 178 bool allowPopUp(); // Call on first window, not target window. |
| 183 static bool allowPopUp(LocalFrame& firstFrame); | 179 static bool allowPopUp(LocalFrame& firstFrame); |
| 184 | 180 |
| 185 Element* frameElement() const; | 181 Element* frameElement() const; |
| 186 | 182 |
| 187 DOMWindow* open(const String& urlString, | 183 DOMWindow* open(const String& urlString, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 254 |
| 259 void willDetachFrameHost(); | 255 void willDetachFrameHost(); |
| 260 | 256 |
| 261 Member<LocalFrame> m_frame; | 257 Member<LocalFrame> m_frame; |
| 262 Member<Document> m_document; | 258 Member<Document> m_document; |
| 263 Member<DOMVisualViewport> m_visualViewport; | 259 Member<DOMVisualViewport> m_visualViewport; |
| 264 Timer<LocalDOMWindow> m_unusedPreloadsTimer; | 260 Timer<LocalDOMWindow> m_unusedPreloadsTimer; |
| 265 | 261 |
| 266 bool m_shouldPrintWhenFinishedLoading; | 262 bool m_shouldPrintWhenFinishedLoading; |
| 267 | 263 |
| 268 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties; | |
| 269 | |
| 270 mutable Member<Screen> m_screen; | 264 mutable Member<Screen> m_screen; |
| 271 mutable Member<History> m_history; | 265 mutable Member<History> m_history; |
| 272 mutable Member<BarProp> m_locationbar; | 266 mutable Member<BarProp> m_locationbar; |
| 273 mutable Member<BarProp> m_menubar; | 267 mutable Member<BarProp> m_menubar; |
| 274 mutable Member<BarProp> m_personalbar; | 268 mutable Member<BarProp> m_personalbar; |
| 275 mutable Member<BarProp> m_scrollbars; | 269 mutable Member<BarProp> m_scrollbars; |
| 276 mutable Member<BarProp> m_statusbar; | 270 mutable Member<BarProp> m_statusbar; |
| 277 mutable Member<BarProp> m_toolbar; | 271 mutable Member<BarProp> m_toolbar; |
| 278 mutable Member<Navigator> m_navigator; | 272 mutable Member<Navigator> m_navigator; |
| 279 mutable Member<StyleMedia> m_media; | 273 mutable Member<StyleMedia> m_media; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 301 return m_status; | 295 return m_status; |
| 302 } | 296 } |
| 303 | 297 |
| 304 inline String LocalDOMWindow::defaultStatus() const { | 298 inline String LocalDOMWindow::defaultStatus() const { |
| 305 return m_defaultStatus; | 299 return m_defaultStatus; |
| 306 } | 300 } |
| 307 | 301 |
| 308 } // namespace blink | 302 } // namespace blink |
| 309 | 303 |
| 310 #endif // LocalDOMWindow_h | 304 #endif // LocalDOMWindow_h |
| OLD | NEW |