| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 class PostMessageTimer; | 58 class PostMessageTimer; |
| 59 class ScheduledAction; | 59 class ScheduledAction; |
| 60 class Screen; | 60 class Screen; |
| 61 class WebKitPoint; | 61 class WebKitPoint; |
| 62 | 62 |
| 63 #if ENABLE(DOM_STORAGE) | 63 #if ENABLE(DOM_STORAGE) |
| 64 class SessionStorage; | 64 class SessionStorage; |
| 65 class Storage; | 65 class Storage; |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 68 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 69 class DOMApplicationCache; | 69 class DOMApplicationCache; |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 typedef int ExceptionCode; | 72 typedef int ExceptionCode; |
| 73 | 73 |
| 74 class DOMWindow : public RefCounted<DOMWindow>, public EventTarget { | 74 class DOMWindow : public RefCounted<DOMWindow>, public EventTarget { |
| 75 public: | 75 public: |
| 76 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new
DOMWindow(frame)); } | 76 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new
DOMWindow(frame)); } |
| 77 virtual ~DOMWindow(); | 77 virtual ~DOMWindow(); |
| 78 | 78 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 #endif | 189 #endif |
| 190 | 190 |
| 191 #if ENABLE(DOM_STORAGE) | 191 #if ENABLE(DOM_STORAGE) |
| 192 // HTML 5 key/value storage | 192 // HTML 5 key/value storage |
| 193 Storage* sessionStorage() const; | 193 Storage* sessionStorage() const; |
| 194 Storage* localStorage() const; | 194 Storage* localStorage() const; |
| 195 #endif | 195 #endif |
| 196 | 196 |
| 197 Console* console() const; | 197 Console* console() const; |
| 198 | 198 |
| 199 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 199 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 200 DOMApplicationCache* applicationCache() const; | 200 DOMApplicationCache* applicationCache() const; |
| 201 #endif | 201 #endif |
| 202 | 202 |
| 203 void postMessage(const String& message, MessagePort*, const String& targ
etOrigin, DOMWindow* source, ExceptionCode&); | 203 void postMessage(const String& message, MessagePort*, const String& targ
etOrigin, DOMWindow* source, ExceptionCode&); |
| 204 void postMessageTimerFired(PostMessageTimer*); | 204 void postMessageTimerFired(PostMessageTimer*); |
| 205 | 205 |
| 206 void scrollBy(int x, int y) const; | 206 void scrollBy(int x, int y) const; |
| 207 void scrollTo(int x, int y) const; | 207 void scrollTo(int x, int y) const; |
| 208 void scroll(int x, int y) const { scrollTo(x, y); } | 208 void scroll(int x, int y) const { scrollTo(x, y); } |
| 209 | 209 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 BarInfo* optionalScrollbars() const { return m_scrollbars.get(); } | 314 BarInfo* optionalScrollbars() const { return m_scrollbars.get(); } |
| 315 BarInfo* optionalStatusbar() const { return m_statusbar.get(); } | 315 BarInfo* optionalStatusbar() const { return m_statusbar.get(); } |
| 316 BarInfo* optionalToolbar() const { return m_toolbar.get(); } | 316 BarInfo* optionalToolbar() const { return m_toolbar.get(); } |
| 317 Console* optionalConsole() const { return m_console.get(); } | 317 Console* optionalConsole() const { return m_console.get(); } |
| 318 Navigator* optionalNavigator() const { return m_navigator.get(); } | 318 Navigator* optionalNavigator() const { return m_navigator.get(); } |
| 319 Location* optionalLocation() const { return m_location.get(); } | 319 Location* optionalLocation() const { return m_location.get(); } |
| 320 #if ENABLE(DOM_STORAGE) | 320 #if ENABLE(DOM_STORAGE) |
| 321 Storage* optionalSessionStorage() const { return m_sessionStorage.get();
} | 321 Storage* optionalSessionStorage() const { return m_sessionStorage.get();
} |
| 322 Storage* optionalLocalStorage() const { return m_localStorage.get(); } | 322 Storage* optionalLocalStorage() const { return m_localStorage.get(); } |
| 323 #endif | 323 #endif |
| 324 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 324 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 325 DOMApplicationCache* optionalApplicationCache() const { return m_applica
tionCache.get(); } | 325 DOMApplicationCache* optionalApplicationCache() const { return m_applica
tionCache.get(); } |
| 326 #endif | 326 #endif |
| 327 | 327 |
| 328 using RefCounted<DOMWindow>::ref; | 328 using RefCounted<DOMWindow>::ref; |
| 329 using RefCounted<DOMWindow>::deref; | 329 using RefCounted<DOMWindow>::deref; |
| 330 | 330 |
| 331 private: | 331 private: |
| 332 DOMWindow(Frame*); | 332 DOMWindow(Frame*); |
| 333 | 333 |
| 334 virtual void refEventTarget() { ref(); } | 334 virtual void refEventTarget() { ref(); } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 349 mutable RefPtr<BarInfo> m_scrollbars; | 349 mutable RefPtr<BarInfo> m_scrollbars; |
| 350 mutable RefPtr<BarInfo> m_statusbar; | 350 mutable RefPtr<BarInfo> m_statusbar; |
| 351 mutable RefPtr<BarInfo> m_toolbar; | 351 mutable RefPtr<BarInfo> m_toolbar; |
| 352 mutable RefPtr<Console> m_console; | 352 mutable RefPtr<Console> m_console; |
| 353 mutable RefPtr<Navigator> m_navigator; | 353 mutable RefPtr<Navigator> m_navigator; |
| 354 mutable RefPtr<Location> m_location; | 354 mutable RefPtr<Location> m_location; |
| 355 #if ENABLE(DOM_STORAGE) | 355 #if ENABLE(DOM_STORAGE) |
| 356 mutable RefPtr<Storage> m_sessionStorage; | 356 mutable RefPtr<Storage> m_sessionStorage; |
| 357 mutable RefPtr<Storage> m_localStorage; | 357 mutable RefPtr<Storage> m_localStorage; |
| 358 #endif | 358 #endif |
| 359 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 359 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 360 mutable RefPtr<DOMApplicationCache> m_applicationCache; | 360 mutable RefPtr<DOMApplicationCache> m_applicationCache; |
| 361 #endif | 361 #endif |
| 362 | 362 |
| 363 RegisteredEventListenerVector m_eventListeners; | 363 RegisteredEventListenerVector m_eventListeners; |
| 364 }; | 364 }; |
| 365 | 365 |
| 366 } // namespace WebCore | 366 } // namespace WebCore |
| 367 | 367 |
| 368 #endif // DOMWindow_h | 368 #endif // DOMWindow_h |
| OLD | NEW |