Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindow.h

Issue 2681233004: Make External per-window rather than a static Persistent. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698