| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); | 202 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); |
| 203 void dispatchWindowLoadEvent(); | 203 void dispatchWindowLoadEvent(); |
| 204 void documentWasClosed(); | 204 void documentWasClosed(); |
| 205 void statePopped(PassRefPtr<SerializedScriptValue>); | 205 void statePopped(PassRefPtr<SerializedScriptValue>); |
| 206 | 206 |
| 207 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. | 207 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. |
| 208 void clearEventQueue(); | 208 void clearEventQueue(); |
| 209 | 209 |
| 210 void acceptLanguagesChanged(); | 210 void acceptLanguagesChanged(); |
| 211 | 211 |
| 212 void setRequiredCSP(const AtomicString&) override; |
| 213 AtomicString requiredCSP() const override; |
| 214 |
| 212 FloatSize getViewportSize(IncludeScrollbarsInRect) const; | 215 FloatSize getViewportSize(IncludeScrollbarsInRect) const; |
| 213 | 216 |
| 214 protected: | 217 protected: |
| 215 // EventTarget overrides. | 218 // EventTarget overrides. |
| 216 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; | 219 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; |
| 217 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; | 220 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; |
| 218 | 221 |
| 219 // Protected DOMWindow overrides. | 222 // Protected DOMWindow overrides. |
| 220 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; | 223 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; |
| 221 | 224 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 250 mutable Member<BarProp> m_personalbar; | 253 mutable Member<BarProp> m_personalbar; |
| 251 mutable Member<BarProp> m_scrollbars; | 254 mutable Member<BarProp> m_scrollbars; |
| 252 mutable Member<BarProp> m_statusbar; | 255 mutable Member<BarProp> m_statusbar; |
| 253 mutable Member<BarProp> m_toolbar; | 256 mutable Member<BarProp> m_toolbar; |
| 254 mutable Member<Navigator> m_navigator; | 257 mutable Member<Navigator> m_navigator; |
| 255 mutable Member<StyleMedia> m_media; | 258 mutable Member<StyleMedia> m_media; |
| 256 mutable Member<CustomElementRegistry> m_customElements; | 259 mutable Member<CustomElementRegistry> m_customElements; |
| 257 | 260 |
| 258 String m_status; | 261 String m_status; |
| 259 String m_defaultStatus; | 262 String m_defaultStatus; |
| 263 AtomicString m_requiredCSP; |
| 260 | 264 |
| 261 mutable Member<ApplicationCache> m_applicationCache; | 265 mutable Member<ApplicationCache> m_applicationCache; |
| 262 | 266 |
| 263 Member<DOMWindowEventQueue> m_eventQueue; | 267 Member<DOMWindowEventQueue> m_eventQueue; |
| 264 RefPtr<SerializedScriptValue> m_pendingStateObject; | 268 RefPtr<SerializedScriptValue> m_pendingStateObject; |
| 265 | 269 |
| 266 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; | 270 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; |
| 267 HeapHashSet<WeakMember<EventListenerObserver>> m_eventListenerObservers; | 271 HeapHashSet<WeakMember<EventListenerObserver>> m_eventListenerObservers; |
| 268 }; | 272 }; |
| 269 | 273 |
| 270 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal
DOMWindow()); | 274 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal
DOMWindow()); |
| 271 | 275 |
| 272 inline String LocalDOMWindow::status() const | 276 inline String LocalDOMWindow::status() const |
| 273 { | 277 { |
| 274 return m_status; | 278 return m_status; |
| 275 } | 279 } |
| 276 | 280 |
| 277 inline String LocalDOMWindow::defaultStatus() const | 281 inline String LocalDOMWindow::defaultStatus() const |
| 278 { | 282 { |
| 279 return m_defaultStatus; | 283 return m_defaultStatus; |
| 280 } | 284 } |
| 281 | 285 |
| 282 } // namespace blink | 286 } // namespace blink |
| 283 | 287 |
| 284 #endif // LocalDOMWindow_h | 288 #endif // LocalDOMWindow_h |
| OLD | NEW |