| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DOMWindow_h | 5 #ifndef DOMWindow_h |
| 6 #define DOMWindow_h | 6 #define DOMWindow_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual int requestIdleCallback(IdleRequestCallback*, | 196 virtual int requestIdleCallback(IdleRequestCallback*, |
| 197 const IdleRequestOptions&) = 0; | 197 const IdleRequestOptions&) = 0; |
| 198 virtual void cancelIdleCallback(int id) = 0; | 198 virtual void cancelIdleCallback(int id) = 0; |
| 199 | 199 |
| 200 // Custom elements | 200 // Custom elements |
| 201 virtual CustomElementRegistry* customElements(ScriptState*) const = 0; | 201 virtual CustomElementRegistry* customElements(ScriptState*) const = 0; |
| 202 | 202 |
| 203 // Obsolete APIs | 203 // Obsolete APIs |
| 204 void captureEvents() {} | 204 void captureEvents() {} |
| 205 void releaseEvents() {} | 205 void releaseEvents() {} |
| 206 External* external() const; | 206 External* external(); |
| 207 | 207 |
| 208 // FIXME: This handles both window[index] and window.frames[index]. However, | 208 // FIXME: This handles both window[index] and window.frames[index]. However, |
| 209 // the spec exposes window.frames[index] across origins but not | 209 // the spec exposes window.frames[index] across origins but not |
| 210 // window[index]... | 210 // window[index]... |
| 211 DOMWindow* anonymousIndexedGetter(uint32_t) const; | 211 DOMWindow* anonymousIndexedGetter(uint32_t) const; |
| 212 | 212 |
| 213 void postMessage(PassRefPtr<SerializedScriptValue> message, | 213 void postMessage(PassRefPtr<SerializedScriptValue> message, |
| 214 const MessagePortArray&, | 214 const MessagePortArray&, |
| 215 const String& targetOrigin, | 215 const String& targetOrigin, |
| 216 LocalDOMWindow* source, | 216 LocalDOMWindow* source, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 // Set to true when close() has been called. Needed for | 262 // Set to true when close() has been called. Needed for |
| 263 // |window.closed| determinism; having it return 'true' | 263 // |window.closed| determinism; having it return 'true' |
| 264 // only after the layout widget's deferred window close | 264 // only after the layout widget's deferred window close |
| 265 // operation has been performed, exposes (confusing) | 265 // operation has been performed, exposes (confusing) |
| 266 // implementation details to scripts. | 266 // implementation details to scripts. |
| 267 bool m_windowIsClosing; | 267 bool m_windowIsClosing; |
| 268 | 268 |
| 269 private: | 269 private: |
| 270 mutable Member<Location> m_location; | 270 mutable Member<Location> m_location; |
| 271 Member<External> m_external; |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 } // namespace blink | 274 } // namespace blink |
| 274 | 275 |
| 275 #endif // DOMWindow_h | 276 #endif // DOMWindow_h |
| OLD | NEW |