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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.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 /* 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 24 matching lines...) Expand all
35 #include "core/frame/LocalFrame.h" 35 #include "core/frame/LocalFrame.h"
36 #include "core/frame/LocalFrameLifecycleObserver.h" 36 #include "core/frame/LocalFrameLifecycleObserver.h"
37 #include "platform/Supplementable.h" 37 #include "platform/Supplementable.h"
38 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
39 39
40 #include "wtf/Assertions.h" 40 #include "wtf/Assertions.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 class CustomElementsRegistry;
45 class DOMWindowEventQueue; 46 class DOMWindowEventQueue;
46 class DOMWindowProperty; 47 class DOMWindowProperty;
47 class DocumentInit; 48 class DocumentInit;
48 class EventListener; 49 class EventListener;
49 class EventQueue; 50 class EventQueue;
50 class ExceptionState; 51 class ExceptionState;
51 class FrameConsole; 52 class FrameConsole;
52 class IntRect; 53 class IntRect;
53 class MessageEvent; 54 class MessageEvent;
54 class Page; 55 class Page;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void resizeBy(int x, int y) const override; 139 void resizeBy(int x, int y) const override;
139 void resizeTo(int width, int height) const override; 140 void resizeTo(int width, int height) const override;
140 MediaQueryList* matchMedia(const String&) override; 141 MediaQueryList* matchMedia(const String&) override;
141 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con st override; 142 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con st override;
142 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove rride; 143 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove rride;
143 int requestAnimationFrame(FrameRequestCallback*) override; 144 int requestAnimationFrame(FrameRequestCallback*) override;
144 int webkitRequestAnimationFrame(FrameRequestCallback*) override; 145 int webkitRequestAnimationFrame(FrameRequestCallback*) override;
145 void cancelAnimationFrame(int id) override; 146 void cancelAnimationFrame(int id) override;
146 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride; 147 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride;
147 void cancelIdleCallback(int id) override; 148 void cancelIdleCallback(int id) override;
149 CustomElementsRegistry* customElements() const override;
148 void schedulePostMessage(MessageEvent*, SecurityOrigin* target, PassRefPtr<S criptCallStack>); 150 void schedulePostMessage(MessageEvent*, SecurityOrigin* target, PassRefPtr<S criptCallStack>);
149 151
150 void registerProperty(DOMWindowProperty*); 152 void registerProperty(DOMWindowProperty*);
151 void unregisterProperty(DOMWindowProperty*); 153 void unregisterProperty(DOMWindowProperty*);
152 154
153 void reset(); 155 void reset();
154 156
155 unsigned pendingUnloadEventListeners() const; 157 unsigned pendingUnloadEventListeners() const;
156 158
157 bool allowPopUp(); // Call on first window, not target window. 159 bool allowPopUp(); // Call on first window, not target window.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 mutable Member<History> m_history; 256 mutable Member<History> m_history;
255 mutable Member<BarProp> m_locationbar; 257 mutable Member<BarProp> m_locationbar;
256 mutable Member<BarProp> m_menubar; 258 mutable Member<BarProp> m_menubar;
257 mutable Member<BarProp> m_personalbar; 259 mutable Member<BarProp> m_personalbar;
258 mutable Member<BarProp> m_scrollbars; 260 mutable Member<BarProp> m_scrollbars;
259 mutable Member<BarProp> m_statusbar; 261 mutable Member<BarProp> m_statusbar;
260 mutable Member<BarProp> m_toolbar; 262 mutable Member<BarProp> m_toolbar;
261 mutable Member<Console> m_console; 263 mutable Member<Console> m_console;
262 mutable Member<Navigator> m_navigator; 264 mutable Member<Navigator> m_navigator;
263 mutable Member<StyleMedia> m_media; 265 mutable Member<StyleMedia> m_media;
266 mutable Member<CustomElementsRegistry> m_customElements;
264 267
265 String m_status; 268 String m_status;
266 String m_defaultStatus; 269 String m_defaultStatus;
267 270
268 mutable Member<ApplicationCache> m_applicationCache; 271 mutable Member<ApplicationCache> m_applicationCache;
269 272
270 Member<DOMWindowEventQueue> m_eventQueue; 273 Member<DOMWindowEventQueue> m_eventQueue;
271 RefPtr<SerializedScriptValue> m_pendingStateObject; 274 RefPtr<SerializedScriptValue> m_pendingStateObject;
272 275
273 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; 276 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers;
274 }; 277 };
275 278
276 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal DOMWindow()); 279 DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocal DOMWindow());
277 280
278 inline String LocalDOMWindow::status() const 281 inline String LocalDOMWindow::status() const
279 { 282 {
280 return m_status; 283 return m_status;
281 } 284 }
282 285
283 inline String LocalDOMWindow::defaultStatus() const 286 inline String LocalDOMWindow::defaultStatus() const
284 { 287 {
285 return m_defaultStatus; 288 return m_defaultStatus;
286 } 289 }
287 290
288 } // namespace blink 291 } // namespace blink
289 292
290 #endif // LocalDOMWindow_h 293 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698