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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void resizeTo(int width, int height) const override; | 139 void resizeTo(int width, int height) const override; |
140 MediaQueryList* matchMedia(const String&) override; | 140 MediaQueryList* matchMedia(const String&) override; |
141 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con
st override; | 141 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con
st override; |
142 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove
rride; | 142 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove
rride; |
143 int requestAnimationFrame(FrameRequestCallback*) override; | 143 int requestAnimationFrame(FrameRequestCallback*) override; |
144 int webkitRequestAnimationFrame(FrameRequestCallback*) override; | 144 int webkitRequestAnimationFrame(FrameRequestCallback*) override; |
145 void cancelAnimationFrame(int id) override; | 145 void cancelAnimationFrame(int id) override; |
146 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove
rride; | 146 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove
rride; |
147 void cancelIdleCallback(int id) override; | 147 void cancelIdleCallback(int id) override; |
148 CustomElementsRegistry* customElements() const override; | 148 CustomElementsRegistry* customElements() const override; |
149 void schedulePostMessage(MessageEvent*, SecurityOrigin* target, PassRefPtr<S
criptCallStack>); | |
150 | 149 |
151 void registerProperty(DOMWindowProperty*); | 150 void registerProperty(DOMWindowProperty*); |
152 void unregisterProperty(DOMWindowProperty*); | 151 void unregisterProperty(DOMWindowProperty*); |
153 | 152 |
154 void reset(); | 153 void reset(); |
155 | 154 |
156 unsigned pendingUnloadEventListeners() const; | 155 unsigned pendingUnloadEventListeners() const; |
157 | 156 |
158 bool allowPopUp(); // Call on first window, not target window. | 157 bool allowPopUp(); // Call on first window, not target window. |
159 static bool allowPopUp(LocalFrame& firstFrame); | 158 static bool allowPopUp(LocalFrame& firstFrame); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. | 198 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont
ext. |
200 void clearEventQueue(); | 199 void clearEventQueue(); |
201 | 200 |
202 void acceptLanguagesChanged(); | 201 void acceptLanguagesChanged(); |
203 | 202 |
204 protected: | 203 protected: |
205 // EventTarget overrides. | 204 // EventTarget overrides. |
206 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; | 205 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; |
207 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; | 206 void removedEventListener(const AtomicString& eventType, const RegisteredEve
ntListener&) override; |
208 | 207 |
| 208 // Protected DOMWindow overrides. |
| 209 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; |
| 210 |
209 private: | 211 private: |
210 class WindowFrameObserver; | 212 class WindowFrameObserver; |
211 | 213 |
212 explicit LocalDOMWindow(LocalFrame&); | 214 explicit LocalDOMWindow(LocalFrame&); |
213 void dispose(); | 215 void dispose(); |
214 | 216 |
215 void dispatchLoadEvent(); | 217 void dispatchLoadEvent(); |
216 void clearDocument(); | 218 void clearDocument(); |
217 void willDestroyDocumentInFrame(); | 219 void willDestroyDocumentInFrame(); |
218 | 220 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 259 } |
258 | 260 |
259 inline String LocalDOMWindow::defaultStatus() const | 261 inline String LocalDOMWindow::defaultStatus() const |
260 { | 262 { |
261 return m_defaultStatus; | 263 return m_defaultStatus; |
262 } | 264 } |
263 | 265 |
264 } // namespace blink | 266 } // namespace blink |
265 | 267 |
266 #endif // LocalDOMWindow_h | 268 #endif // LocalDOMWindow_h |
OLD | NEW |