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

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

Issue 2025393003: Move document.visualViewport to window.visualViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing expectations 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 60
60 enum PageshowEventPersistence { 61 enum PageshowEventPersistence {
61 PageshowEventNotPersisted = 0, 62 PageshowEventNotPersisted = 0,
62 PageshowEventPersisted = 1 63 PageshowEventPersisted = 1
63 }; 64 };
64 65
65 // 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,
66 // 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.
67 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 {
68 USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); 69 USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow);
(...skipping 29 matching lines...) Expand all
98 Navigator* navigator() const override; 99 Navigator* navigator() const override;
99 bool offscreenBuffering() const override; 100 bool offscreenBuffering() const override;
100 int outerHeight() const override; 101 int outerHeight() const override;
101 int outerWidth() const override; 102 int outerWidth() const override;
102 int innerHeight() const override; 103 int innerHeight() const override;
103 int innerWidth() const override; 104 int innerWidth() const override;
104 int screenX() const override; 105 int screenX() const override;
105 int screenY() const override; 106 int screenY() const override;
106 double scrollX() const override; 107 double scrollX() const override;
107 double scrollY() const override; 108 double scrollY() const override;
109 VisualViewport* visualViewport() override;
108 const AtomicString& name() const override; 110 const AtomicString& name() const override;
109 void setName(const AtomicString&) override; 111 void setName(const AtomicString&) override;
110 String status() const override; 112 String status() const override;
111 void setStatus(const String&) override; 113 void setStatus(const String&) override;
112 String defaultStatus() const override; 114 String defaultStatus() const override;
113 void setDefaultStatus(const String&) override; 115 void setDefaultStatus(const String&) override;
114 Document* document() const override; 116 Document* document() const override;
115 StyleMedia* styleMedia() const override; 117 StyleMedia* styleMedia() const override;
116 double devicePixelRatio() const override; 118 double devicePixelRatio() const override;
117 ApplicationCache* applicationCache() const override; 119 ApplicationCache* applicationCache() const override;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 266 }
265 267
266 inline String LocalDOMWindow::defaultStatus() const 268 inline String LocalDOMWindow::defaultStatus() const
267 { 269 {
268 return m_defaultStatus; 270 return m_defaultStatus;
269 } 271 }
270 272
271 } // namespace blink 273 } // namespace blink
272 274
273 #endif // LocalDOMWindow_h 275 #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