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

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

Issue 2070563002: Seperate DOMVisualViewport from Blink's VisualViewport class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class EventListener; 49 class EventListener;
50 class EventQueue; 50 class EventQueue;
51 class ExceptionState; 51 class ExceptionState;
52 class FrameConsole; 52 class FrameConsole;
53 class IntRect; 53 class IntRect;
54 class MessageEvent; 54 class MessageEvent;
55 class Page; 55 class Page;
56 class PostMessageTimer; 56 class PostMessageTimer;
57 class SecurityOrigin; 57 class SecurityOrigin;
58 class SourceLocation; 58 class SourceLocation;
59 class VisualViewport; 59 class DOMVisualViewport;
60 60
61 enum PageshowEventPersistence { 61 enum PageshowEventPersistence {
62 PageshowEventNotPersisted = 0, 62 PageshowEventNotPersisted = 0,
63 PageshowEventPersisted = 1 63 PageshowEventPersisted = 1
64 }; 64 };
65 65
66 // Note: if you're thinking of returning something DOM-related by reference, 66 // Note: if you're thinking of returning something DOM-related by reference,
67 // please ping dcheng@chromium.org first. You probably don't want to do that. 67 // please ping dcheng@chromium.org first. You probably don't want to do that.
68 class CORE_EXPORT LocalDOMWindow final : public DOMWindow, public Supplementable <LocalDOMWindow>, public DOMWindowLifecycleNotifier { 68 class CORE_EXPORT LocalDOMWindow final : public DOMWindow, public Supplementable <LocalDOMWindow>, public DOMWindowLifecycleNotifier {
69 USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); 69 USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow);
(...skipping 29 matching lines...) Expand all
99 Navigator* navigator() const override; 99 Navigator* navigator() const override;
100 bool offscreenBuffering() const override; 100 bool offscreenBuffering() const override;
101 int outerHeight() const override; 101 int outerHeight() const override;
102 int outerWidth() const override; 102 int outerWidth() const override;
103 int innerHeight() const override; 103 int innerHeight() const override;
104 int innerWidth() const override; 104 int innerWidth() const override;
105 int screenX() const override; 105 int screenX() const override;
106 int screenY() const override; 106 int screenY() const override;
107 double scrollX() const override; 107 double scrollX() const override;
108 double scrollY() const override; 108 double scrollY() const override;
109 VisualViewport* visualViewport() override; 109 DOMVisualViewport* visualViewport() override;
110 const AtomicString& name() const override; 110 const AtomicString& name() const override;
111 void setName(const AtomicString&) override; 111 void setName(const AtomicString&) override;
112 String status() const override; 112 String status() const override;
113 void setStatus(const String&) override; 113 void setStatus(const String&) override;
114 String defaultStatus() const override; 114 String defaultStatus() const override;
115 void setDefaultStatus(const String&) override; 115 void setDefaultStatus(const String&) override;
116 Document* document() const override; 116 Document* document() const override;
117 StyleMedia* styleMedia() const override; 117 StyleMedia* styleMedia() const override;
118 double devicePixelRatio() const override; 118 double devicePixelRatio() const override;
119 ApplicationCache* applicationCache() const override; 119 ApplicationCache* applicationCache() const override;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 void dispatchLoadEvent(); 224 void dispatchLoadEvent();
225 void clearDocument(); 225 void clearDocument();
226 void willDestroyDocumentInFrame(); 226 void willDestroyDocumentInFrame();
227 227
228 void willDetachFrameHost(); 228 void willDetachFrameHost();
229 void frameDestroyed(); 229 void frameDestroyed();
230 230
231 Member<WindowFrameObserver> m_frameObserver; 231 Member<WindowFrameObserver> m_frameObserver;
232 Member<Document> m_document; 232 Member<Document> m_document;
233 Member<DOMVisualViewport> m_visualViewport;
233 234
234 bool m_shouldPrintWhenFinishedLoading; 235 bool m_shouldPrintWhenFinishedLoading;
235 236
236 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties; 237 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties;
237 238
238 mutable Member<Screen> m_screen; 239 mutable Member<Screen> m_screen;
239 mutable Member<History> m_history; 240 mutable Member<History> m_history;
240 mutable Member<BarProp> m_locationbar; 241 mutable Member<BarProp> m_locationbar;
241 mutable Member<BarProp> m_menubar; 242 mutable Member<BarProp> m_menubar;
242 mutable Member<BarProp> m_personalbar; 243 mutable Member<BarProp> m_personalbar;
(...skipping 23 matching lines...) Expand all
266 } 267 }
267 268
268 inline String LocalDOMWindow::defaultStatus() const 269 inline String LocalDOMWindow::defaultStatus() const
269 { 270 {
270 return m_defaultStatus; 271 return m_defaultStatus;
271 } 272 }
272 273
273 } // namespace blink 274 } // namespace blink
274 275
275 #endif // LocalDOMWindow_h 276 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698