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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FloatSize getViewportSize(IncludeScrollbarsInRect) const; | 212 FloatSize getViewportSize(IncludeScrollbarsInRect) const; |
213 | 213 |
| 214 void setCustomElementCreationContext(Document*); |
| 215 Document* customElementCreationContext() const; |
| 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 |
222 private: | 225 private: |
223 class WindowFrameObserver; | 226 class WindowFrameObserver; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 String m_status; | 263 String m_status; |
261 String m_defaultStatus; | 264 String m_defaultStatus; |
262 | 265 |
263 mutable Member<ApplicationCache> m_applicationCache; | 266 mutable Member<ApplicationCache> m_applicationCache; |
264 | 267 |
265 Member<DOMWindowEventQueue> m_eventQueue; | 268 Member<DOMWindowEventQueue> m_eventQueue; |
266 RefPtr<SerializedScriptValue> m_pendingStateObject; | 269 RefPtr<SerializedScriptValue> m_pendingStateObject; |
267 | 270 |
268 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; | 271 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; |
269 HeapHashSet<WeakMember<EventListenerObserver>> m_eventListenerObservers; | 272 HeapHashSet<WeakMember<EventListenerObserver>> m_eventListenerObservers; |
| 273 |
| 274 Member<Document> m_customElementCreationContext = nullptr; |
270 }; | 275 }; |
271 | 276 |
272 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal
DOMWindow()); | 277 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal
DOMWindow()); |
273 | 278 |
274 inline String LocalDOMWindow::status() const | 279 inline String LocalDOMWindow::status() const |
275 { | 280 { |
276 return m_status; | 281 return m_status; |
277 } | 282 } |
278 | 283 |
279 inline String LocalDOMWindow::defaultStatus() const | 284 inline String LocalDOMWindow::defaultStatus() const |
280 { | 285 { |
281 return m_defaultStatus; | 286 return m_defaultStatus; |
282 } | 287 } |
283 | 288 |
284 } // namespace blink | 289 } // namespace blink |
285 | 290 |
286 #endif // LocalDOMWindow_h | 291 #endif // LocalDOMWindow_h |
OLD | NEW |