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

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

Issue 1810973004: Add the CustomElementsRegistry interface behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (merge conflict) Created 4 years, 8 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
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 "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowBase64.h" 10 #include "core/frame/DOMWindowBase64.h"
11 #include "core/frame/Location.h" 11 #include "core/frame/Location.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "platform/scroll/ScrollableArea.h" 13 #include "platform/scroll/ScrollableArea.h"
14 14
15 #include "wtf/Forward.h" 15 #include "wtf/Forward.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ApplicationCache; 19 class ApplicationCache;
20 class BarProp; 20 class BarProp;
21 class CSSRuleList; 21 class CSSRuleList;
22 class CSSStyleDeclaration; 22 class CSSStyleDeclaration;
23 class Console; 23 class Console;
24 class CustomElementsRegistry;
24 class DOMSelection; 25 class DOMSelection;
25 class DOMWindowCSS; 26 class DOMWindowCSS;
26 class Document; 27 class Document;
27 class Element; 28 class Element;
28 class Frame; 29 class Frame;
29 class FrameRequestCallback; 30 class FrameRequestCallback;
30 class History; 31 class History;
31 class IdleRequestCallback; 32 class IdleRequestCallback;
32 class IdleRequestOptions; 33 class IdleRequestOptions;
33 class LocalDOMWindow; 34 class LocalDOMWindow;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // WebKit animation extensions 169 // WebKit animation extensions
169 virtual int requestAnimationFrame(FrameRequestCallback*) = 0; 170 virtual int requestAnimationFrame(FrameRequestCallback*) = 0;
170 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0; 171 virtual int webkitRequestAnimationFrame(FrameRequestCallback*) = 0;
171 virtual void cancelAnimationFrame(int id) = 0; 172 virtual void cancelAnimationFrame(int id) = 0;
172 173
173 // Idle callback extensions 174 // Idle callback extensions
174 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio ns&) = 0; 175 virtual int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptio ns&) = 0;
175 virtual void cancelIdleCallback(int id) = 0; 176 virtual void cancelIdleCallback(int id) = 0;
176 177
178 // Custom elements
179 virtual CustomElementsRegistry* customElements() const = 0;
180
177 void captureEvents() { } 181 void captureEvents() { }
178 void releaseEvents() { } 182 void releaseEvents() { }
179 183
180 // FIXME: This handles both window[index] and window.frames[index]. However, 184 // FIXME: This handles both window[index] and window.frames[index]. However,
181 // the spec exposes window.frames[index] across origins but not 185 // the spec exposes window.frames[index] across origins but not
182 // window[index]... 186 // window[index]...
183 DOMWindow* anonymousIndexedGetter(uint32_t) const; 187 DOMWindow* anonymousIndexedGetter(uint32_t) const;
184 188
185 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); 189 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
186 190
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // implementation details to scripts. 227 // implementation details to scripts.
224 bool m_windowIsClosing; 228 bool m_windowIsClosing;
225 229
226 private: 230 private:
227 mutable Member<Location> m_location; 231 mutable Member<Location> m_location;
228 }; 232 };
229 233
230 } // namespace blink 234 } // namespace blink
231 235
232 #endif // DOMWindow_h 236 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698