| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "RegisteredEventListener.h" | 32 #include "RegisteredEventListener.h" |
| 33 #include "SecurityOrigin.h" | 33 #include "SecurityOrigin.h" |
| 34 #include <wtf/Forward.h> | 34 #include <wtf/Forward.h> |
| 35 #include <wtf/RefCounted.h> | 35 #include <wtf/RefCounted.h> |
| 36 #include <wtf/RefPtr.h> | 36 #include <wtf/RefPtr.h> |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 class BarInfo; | 40 class BarInfo; |
| 41 class BeforeUnloadEvent; | 41 class BeforeUnloadEvent; |
| 42 class Chaos; |
| 42 class CSSRuleList; | 43 class CSSRuleList; |
| 43 class CSSStyleDeclaration; | 44 class CSSStyleDeclaration; |
| 44 class Console; | 45 class Console; |
| 45 class DOMSelection; | 46 class DOMSelection; |
| 46 class Database; | 47 class Database; |
| 47 class Document; | 48 class Document; |
| 48 class Element; | 49 class Element; |
| 49 class Event; | 50 class Event; |
| 50 class EventListener; | 51 class EventListener; |
| 51 class FloatRect; | 52 class FloatRect; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 Navigator* optionalNavigator() const { return m_navigator.get(); } | 384 Navigator* optionalNavigator() const { return m_navigator.get(); } |
| 384 Location* optionalLocation() const { return m_location.get(); } | 385 Location* optionalLocation() const { return m_location.get(); } |
| 385 #if ENABLE(DOM_STORAGE) | 386 #if ENABLE(DOM_STORAGE) |
| 386 Storage* optionalSessionStorage() const { return m_sessionStorage.get();
} | 387 Storage* optionalSessionStorage() const { return m_sessionStorage.get();
} |
| 387 Storage* optionalLocalStorage() const { return m_localStorage.get(); } | 388 Storage* optionalLocalStorage() const { return m_localStorage.get(); } |
| 388 #endif | 389 #endif |
| 389 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 390 #if ENABLE(OFFLINE_WEB_APPLICATIONS) |
| 390 DOMApplicationCache* optionalApplicationCache() const { return m_applica
tionCache.get(); } | 391 DOMApplicationCache* optionalApplicationCache() const { return m_applica
tionCache.get(); } |
| 391 #endif | 392 #endif |
| 392 | 393 |
| 394 Chaos *chaos() const; |
| 395 |
| 393 using RefCounted<DOMWindow>::ref; | 396 using RefCounted<DOMWindow>::ref; |
| 394 using RefCounted<DOMWindow>::deref; | 397 using RefCounted<DOMWindow>::deref; |
| 395 | 398 |
| 396 private: | 399 private: |
| 397 DOMWindow(Frame*); | 400 DOMWindow(Frame*); |
| 398 | 401 |
| 399 virtual void refEventTarget() { ref(); } | 402 virtual void refEventTarget() { ref(); } |
| 400 virtual void derefEventTarget() { deref(); } | 403 virtual void derefEventTarget() { deref(); } |
| 401 | 404 |
| 402 void dispatchEventWithDocumentAsTarget(PassRefPtr<Event>, RegisteredEven
tListenerVector* = 0); | 405 void dispatchEventWithDocumentAsTarget(PassRefPtr<Event>, RegisteredEven
tListenerVector* = 0); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 417 mutable RefPtr<Console> m_console; | 420 mutable RefPtr<Console> m_console; |
| 418 mutable RefPtr<Navigator> m_navigator; | 421 mutable RefPtr<Navigator> m_navigator; |
| 419 mutable RefPtr<Location> m_location; | 422 mutable RefPtr<Location> m_location; |
| 420 #if ENABLE(DOM_STORAGE) | 423 #if ENABLE(DOM_STORAGE) |
| 421 mutable RefPtr<Storage> m_sessionStorage; | 424 mutable RefPtr<Storage> m_sessionStorage; |
| 422 mutable RefPtr<Storage> m_localStorage; | 425 mutable RefPtr<Storage> m_localStorage; |
| 423 #endif | 426 #endif |
| 424 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 427 #if ENABLE(OFFLINE_WEB_APPLICATIONS) |
| 425 mutable RefPtr<DOMApplicationCache> m_applicationCache; | 428 mutable RefPtr<DOMApplicationCache> m_applicationCache; |
| 426 #endif | 429 #endif |
| 430 mutable RefPtr<Chaos> m_chaos; |
| 427 | 431 |
| 428 RegisteredEventListenerVector m_eventListeners; | 432 RegisteredEventListenerVector m_eventListeners; |
| 429 }; | 433 }; |
| 430 | 434 |
| 431 } // namespace WebCore | 435 } // namespace WebCore |
| 432 | 436 |
| 433 #endif // DOMWindow_h | 437 #endif // DOMWindow_h |
| OLD | NEW |