| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; | 217 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; |
| 218 | 218 |
| 219 // Protected DOMWindow overrides. | 219 // Protected DOMWindow overrides. |
| 220 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; | 220 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; |
| 221 | 221 |
| 222 private: | 222 private: |
| 223 // Intentionally private to prevent redundant checks when the type is | 223 // Intentionally private to prevent redundant checks when the type is |
| 224 // already LocalDOMWindow. | 224 // already LocalDOMWindow. |
| 225 bool isLocalDOMWindow() const override { return true; } | 225 bool isLocalDOMWindow() const override { return true; } |
| 226 bool isRemoteDOMWindow() const override { return false; } | 226 bool isRemoteDOMWindow() const override { return false; } |
| 227 void warnUnusedPreloads(TimerBase*); |
| 227 | 228 |
| 228 explicit LocalDOMWindow(LocalFrame&); | 229 explicit LocalDOMWindow(LocalFrame&); |
| 229 void dispose(); | 230 void dispose(); |
| 230 | 231 |
| 231 void dispatchLoadEvent(); | 232 void dispatchLoadEvent(); |
| 232 void clearDocument(); | 233 void clearDocument(); |
| 233 | 234 |
| 234 void willDetachFrameHost(); | 235 void willDetachFrameHost(); |
| 235 | 236 |
| 236 Member<LocalFrame> m_frame; | 237 Member<LocalFrame> m_frame; |
| 237 Member<Document> m_document; | 238 Member<Document> m_document; |
| 238 Member<DOMVisualViewport> m_visualViewport; | 239 Member<DOMVisualViewport> m_visualViewport; |
| 240 Timer<LocalDOMWindow> m_unusedPreloadsTimer; |
| 239 | 241 |
| 240 bool m_shouldPrintWhenFinishedLoading; | 242 bool m_shouldPrintWhenFinishedLoading; |
| 241 | 243 |
| 242 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties; | 244 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties; |
| 243 | 245 |
| 244 mutable Member<Screen> m_screen; | 246 mutable Member<Screen> m_screen; |
| 245 mutable Member<History> m_history; | 247 mutable Member<History> m_history; |
| 246 mutable Member<BarProp> m_locationbar; | 248 mutable Member<BarProp> m_locationbar; |
| 247 mutable Member<BarProp> m_menubar; | 249 mutable Member<BarProp> m_menubar; |
| 248 mutable Member<BarProp> m_personalbar; | 250 mutable Member<BarProp> m_personalbar; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 273 } | 275 } |
| 274 | 276 |
| 275 inline String LocalDOMWindow::defaultStatus() const | 277 inline String LocalDOMWindow::defaultStatus() const |
| 276 { | 278 { |
| 277 return m_defaultStatus; | 279 return m_defaultStatus; |
| 278 } | 280 } |
| 279 | 281 |
| 280 } // namespace blink | 282 } // namespace blink |
| 281 | 283 |
| 282 #endif // LocalDOMWindow_h | 284 #endif // LocalDOMWindow_h |
| OLD | NEW |