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

Side by Side Diff: sky/engine/core/page/Page.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef Page_h 21 #ifndef Page_h
22 #define Page_h 22 #define Page_h
23 23
24 #include "core/dom/ViewportDescription.h"
25 #include "core/frame/LocalFrame.h" 24 #include "core/frame/LocalFrame.h"
26 #include "core/frame/SettingsDelegate.h" 25 #include "core/frame/SettingsDelegate.h"
27 #include "core/frame/UseCounter.h" 26 #include "core/frame/UseCounter.h"
28 #include "core/page/PageAnimator.h" 27 #include "core/page/PageAnimator.h"
29 #include "core/page/PageVisibilityState.h" 28 #include "core/page/PageVisibilityState.h"
30 #include "platform/LifecycleContext.h" 29 #include "platform/LifecycleContext.h"
31 #include "platform/Supplementable.h" 30 #include "platform/Supplementable.h"
32 #include "platform/geometry/LayoutRect.h" 31 #include "platform/geometry/LayoutRect.h"
33 #include "platform/geometry/Region.h" 32 #include "platform/geometry/Region.h"
34 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // inspector overlay, popups, SVGImage, etc. 92 // inspector overlay, popups, SVGImage, etc.
94 static HashSet<Page*>& allPages(); 93 static HashSet<Page*>& allPages();
95 // This method returns all ordinary pages. 94 // This method returns all ordinary pages.
96 static HashSet<Page*>& ordinaryPages(); 95 static HashSet<Page*>& ordinaryPages();
97 96
98 FrameHost& frameHost() const { return *m_frameHost; } 97 FrameHost& frameHost() const { return *m_frameHost; }
99 98
100 void setNeedsRecalcStyleInAllFrames(); 99 void setNeedsRecalcStyleInAllFrames();
101 void updateAcceleratedCompositingSettings(); 100 void updateAcceleratedCompositingSettings();
102 101
103 ViewportDescription viewportDescription() const;
104
105 EditorClient& editorClient() const { return *m_editorClient; } 102 EditorClient& editorClient() const { return *m_editorClient; }
106 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; } 103 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; }
107 UndoStack& undoStack() const { return *m_undoStack; } 104 UndoStack& undoStack() const { return *m_undoStack; }
108 105
109 void setMainFrame(LocalFrame*); 106 void setMainFrame(LocalFrame*);
110 LocalFrame* mainFrame() const { return m_mainFrame; } 107 LocalFrame* mainFrame() const { return m_mainFrame; }
111 108
112 void documentDetached(Document*); 109 void documentDetached(Document*);
113 110
114 bool openedByDOM() const; 111 bool openedByDOM() const;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers; 224 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers;
228 225
229 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 226 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
230 // FIXME: Most of the members of Page should move onto FrameHost. 227 // FIXME: Most of the members of Page should move onto FrameHost.
231 OwnPtrWillBeMember<FrameHost> m_frameHost; 228 OwnPtrWillBeMember<FrameHost> m_frameHost;
232 }; 229 };
233 230
234 } // namespace blink 231 } // namespace blink
235 232
236 #endif // Page_h 233 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698