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

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

Issue 2629333002: Remove DOMWindowProperty (Closed)
Patch Set: temp Created 3 years, 11 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 "platform/Supplementable.h" 35 #include "platform/Supplementable.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/Assertions.h" 37 #include "wtf/Assertions.h"
38 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class CustomElementRegistry; 43 class CustomElementRegistry;
44 class DOMWindowEventQueue; 44 class DOMWindowEventQueue;
45 class DOMWindowProperty;
46 class DocumentInit; 45 class DocumentInit;
47 class EventQueue; 46 class EventQueue;
48 class FrameConsole; 47 class FrameConsole;
49 class MessageEvent; 48 class MessageEvent;
50 class PostMessageTimer; 49 class PostMessageTimer;
51 class SecurityOrigin; 50 class SecurityOrigin;
52 class SourceLocation; 51 class SourceLocation;
53 class DOMVisualViewport; 52 class DOMVisualViewport;
54 53
55 enum PageshowEventPersistence { 54 enum PageshowEventPersistence {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int requestAnimationFrame(FrameRequestCallback*) override; 164 int requestAnimationFrame(FrameRequestCallback*) override;
166 int webkitRequestAnimationFrame(FrameRequestCallback*) override; 165 int webkitRequestAnimationFrame(FrameRequestCallback*) override;
167 void cancelAnimationFrame(int id) override; 166 void cancelAnimationFrame(int id) override;
168 int requestIdleCallback(IdleRequestCallback*, 167 int requestIdleCallback(IdleRequestCallback*,
169 const IdleRequestOptions&) override; 168 const IdleRequestOptions&) override;
170 void cancelIdleCallback(int id) override; 169 void cancelIdleCallback(int id) override;
171 CustomElementRegistry* customElements(ScriptState*) const override; 170 CustomElementRegistry* customElements(ScriptState*) const override;
172 CustomElementRegistry* customElements() const; 171 CustomElementRegistry* customElements() const;
173 CustomElementRegistry* maybeCustomElements() const; 172 CustomElementRegistry* maybeCustomElements() const;
174 173
175 void registerProperty(DOMWindowProperty*);
176 void unregisterProperty(DOMWindowProperty*);
177
178 void registerEventListenerObserver(EventListenerObserver*); 174 void registerEventListenerObserver(EventListenerObserver*);
179 175
180 void frameDestroyed(); 176 void frameDestroyed();
181 void reset(); 177 void reset();
182 178
183 unsigned pendingUnloadEventListeners() const; 179 unsigned pendingUnloadEventListeners() const;
184 180
185 bool allowPopUp(); // Call on first window, not target window. 181 bool allowPopUp(); // Call on first window, not target window.
186 static bool allowPopUp(LocalFrame& firstFrame); 182 static bool allowPopUp(LocalFrame& firstFrame);
187 183
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void clearDocument(); 256 void clearDocument();
261 257
262 void willDetachFrameHost(); 258 void willDetachFrameHost();
263 259
264 Member<Document> m_document; 260 Member<Document> m_document;
265 Member<DOMVisualViewport> m_visualViewport; 261 Member<DOMVisualViewport> m_visualViewport;
266 TaskRunnerTimer<LocalDOMWindow> m_unusedPreloadsTimer; 262 TaskRunnerTimer<LocalDOMWindow> m_unusedPreloadsTimer;
267 263
268 bool m_shouldPrintWhenFinishedLoading; 264 bool m_shouldPrintWhenFinishedLoading;
269 265
270 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties;
271
272 mutable Member<Screen> m_screen; 266 mutable Member<Screen> m_screen;
273 mutable Member<History> m_history; 267 mutable Member<History> m_history;
274 mutable Member<BarProp> m_locationbar; 268 mutable Member<BarProp> m_locationbar;
275 mutable Member<BarProp> m_menubar; 269 mutable Member<BarProp> m_menubar;
276 mutable Member<BarProp> m_personalbar; 270 mutable Member<BarProp> m_personalbar;
277 mutable Member<BarProp> m_scrollbars; 271 mutable Member<BarProp> m_scrollbars;
278 mutable Member<BarProp> m_statusbar; 272 mutable Member<BarProp> m_statusbar;
279 mutable Member<BarProp> m_toolbar; 273 mutable Member<BarProp> m_toolbar;
280 mutable Member<Navigator> m_navigator; 274 mutable Member<Navigator> m_navigator;
281 mutable Member<StyleMedia> m_media; 275 mutable Member<StyleMedia> m_media;
(...skipping 21 matching lines...) Expand all
303 return m_status; 297 return m_status;
304 } 298 }
305 299
306 inline String LocalDOMWindow::defaultStatus() const { 300 inline String LocalDOMWindow::defaultStatus() const {
307 return m_defaultStatus; 301 return m_defaultStatus;
308 } 302 }
309 303
310 } // namespace blink 304 } // namespace blink
311 305
312 #endif // LocalDOMWindow_h 306 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindowProperty.cpp ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698