| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 void statePopped(PassRefPtr<SerializedScriptValue>); | 306 void statePopped(PassRefPtr<SerializedScriptValue>); |
| 307 | 307 |
| 308 // FIXME: This shouldn't be public once LocalDOMWindow becomes | 308 // FIXME: This shouldn't be public once LocalDOMWindow becomes |
| 309 // ExecutionContext. | 309 // ExecutionContext. |
| 310 void clearEventQueue(); | 310 void clearEventQueue(); |
| 311 | 311 |
| 312 void acceptLanguagesChanged(); | 312 void acceptLanguagesChanged(); |
| 313 | 313 |
| 314 FloatSize getViewportSize(IncludeScrollbarsInRect) const; | 314 FloatSize getViewportSize(IncludeScrollbarsInRect) const; |
| 315 | 315 |
| 316 void setHasLoadEventFired() { m_hasLoadEventFired = true; } |
| 317 bool hasLoadEventFired() { return m_hasLoadEventFired; } |
| 318 |
| 316 protected: | 319 protected: |
| 317 // EventTarget overrides. | 320 // EventTarget overrides. |
| 318 void addedEventListener(const AtomicString& eventType, | 321 void addedEventListener(const AtomicString& eventType, |
| 319 RegisteredEventListener&) override; | 322 RegisteredEventListener&) override; |
| 320 void removedEventListener(const AtomicString& eventType, | 323 void removedEventListener(const AtomicString& eventType, |
| 321 const RegisteredEventListener&) override; | 324 const RegisteredEventListener&) override; |
| 322 | 325 |
| 323 // Protected DOMWindow overrides. | 326 // Protected DOMWindow overrides. |
| 324 void schedulePostMessage(MessageEvent*, | 327 void schedulePostMessage(MessageEvent*, |
| 325 PassRefPtr<SecurityOrigin> target, | 328 PassRefPtr<SecurityOrigin> target, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 336 void dispose(); | 339 void dispose(); |
| 337 | 340 |
| 338 void dispatchLoadEvent(); | 341 void dispatchLoadEvent(); |
| 339 void clearDocument(); | 342 void clearDocument(); |
| 340 | 343 |
| 341 Member<Document> m_document; | 344 Member<Document> m_document; |
| 342 Member<DOMVisualViewport> m_visualViewport; | 345 Member<DOMVisualViewport> m_visualViewport; |
| 343 TaskRunnerTimer<LocalDOMWindow> m_unusedPreloadsTimer; | 346 TaskRunnerTimer<LocalDOMWindow> m_unusedPreloadsTimer; |
| 344 | 347 |
| 345 bool m_shouldPrintWhenFinishedLoading; | 348 bool m_shouldPrintWhenFinishedLoading; |
| 349 bool m_hasLoadEventFired = false; |
| 346 | 350 |
| 347 mutable Member<Screen> m_screen; | 351 mutable Member<Screen> m_screen; |
| 348 mutable Member<History> m_history; | 352 mutable Member<History> m_history; |
| 349 mutable Member<BarProp> m_locationbar; | 353 mutable Member<BarProp> m_locationbar; |
| 350 mutable Member<BarProp> m_menubar; | 354 mutable Member<BarProp> m_menubar; |
| 351 mutable Member<BarProp> m_personalbar; | 355 mutable Member<BarProp> m_personalbar; |
| 352 mutable Member<BarProp> m_scrollbars; | 356 mutable Member<BarProp> m_scrollbars; |
| 353 mutable Member<BarProp> m_statusbar; | 357 mutable Member<BarProp> m_statusbar; |
| 354 mutable Member<BarProp> m_toolbar; | 358 mutable Member<BarProp> m_toolbar; |
| 355 mutable Member<Navigator> m_navigator; | 359 mutable Member<Navigator> m_navigator; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 379 return m_status; | 383 return m_status; |
| 380 } | 384 } |
| 381 | 385 |
| 382 inline String LocalDOMWindow::defaultStatus() const { | 386 inline String LocalDOMWindow::defaultStatus() const { |
| 383 return m_defaultStatus; | 387 return m_defaultStatus; |
| 384 } | 388 } |
| 385 | 389 |
| 386 } // namespace blink | 390 } // namespace blink |
| 387 | 391 |
| 388 #endif // LocalDOMWindow_h | 392 #endif // LocalDOMWindow_h |
| OLD | NEW |