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

Side by Side Diff: Source/core/page/Page.h

Issue 225303014: [Pinch-to-zoom] Moved scale factor into PinchViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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, 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,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual ~Page(); 108 virtual ~Page();
109 109
110 void makeOrdinary(); 110 void makeOrdinary();
111 111
112 // This method returns all pages, incl. private ones associated with 112 // This method returns all pages, incl. private ones associated with
113 // inspector overlay, popups, SVGImage, etc. 113 // inspector overlay, popups, SVGImage, etc.
114 static HashSet<Page*>& allPages(); 114 static HashSet<Page*>& allPages();
115 // This method returns all ordinary pages. 115 // This method returns all ordinary pages.
116 static HashSet<Page*>& ordinaryPages(); 116 static HashSet<Page*>& ordinaryPages();
117 117
118 FrameHost& frameHost() { return *m_frameHost; } 118 FrameHost& frameHost() const { return *m_frameHost; }
119 119
120 void setNeedsRecalcStyleInAllFrames(); 120 void setNeedsRecalcStyleInAllFrames();
121 121
122 ViewportDescription viewportDescription() const; 122 ViewportDescription viewportDescription() const;
123 123
124 static void refreshPlugins(bool reload); 124 static void refreshPlugins(bool reload);
125 PluginData* pluginData() const; 125 PluginData* pluginData() const;
126 126
127 EditorClient& editorClient() const { return *m_editorClient; } 127 EditorClient& editorClient() const { return *m_editorClient; }
128 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; } 128 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien t; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 void unmarkAllTextMatches(); 170 void unmarkAllTextMatches();
171 171
172 // DefersLoading is used to delay loads during modal dialogs. 172 // DefersLoading is used to delay loads during modal dialogs.
173 // Modal dialogs are supposed to freeze all background processes 173 // Modal dialogs are supposed to freeze all background processes
174 // in the page, including prevent additional loads from staring/continuing. 174 // in the page, including prevent additional loads from staring/continuing.
175 void setDefersLoading(bool); 175 void setDefersLoading(bool);
176 bool defersLoading() const { return m_defersLoading; } 176 bool defersLoading() const { return m_defersLoading; }
177 177
178 void setPageScaleFactor(float scale, const IntPoint& origin); 178 void setPageScaleFactor(float scale, const IntPoint& origin);
179 float pageScaleFactor() const { return m_pageScaleFactor; } 179 float pageScaleFactor() const;
180 180
181 float deviceScaleFactor() const { return m_deviceScaleFactor; } 181 float deviceScaleFactor() const { return m_deviceScaleFactor; }
182 void setDeviceScaleFactor(float); 182 void setDeviceScaleFactor(float);
183 183
184 static void allVisitedStateChanged(); 184 static void allVisitedStateChanged();
185 static void visitedStateChanged(LinkHash visitedHash); 185 static void visitedStateChanged(LinkHash visitedHash);
186 186
187 StorageNamespace* sessionStorage(bool optionalCreate = true); 187 StorageNamespace* sessionStorage(bool optionalCreate = true);
188 StorageClient& storageClient() const { return *m_storageClient; } 188 StorageClient& storageClient() const { return *m_storageClient; }
189 189
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 OwnPtr<ValidationMessageClient> m_validationMessageClient; 263 OwnPtr<ValidationMessageClient> m_validationMessageClient;
264 264
265 UseCounter m_useCounter; 265 UseCounter m_useCounter;
266 266
267 int m_subframeCount; 267 int m_subframeCount;
268 bool m_openedByDOM; 268 bool m_openedByDOM;
269 269
270 bool m_tabKeyCyclesThroughElements; 270 bool m_tabKeyCyclesThroughElements;
271 bool m_defersLoading; 271 bool m_defersLoading;
272 272
273 float m_pageScaleFactor;
274 float m_deviceScaleFactor; 273 float m_deviceScaleFactor;
275 274
276 OwnPtr<StorageNamespace> m_sessionStorage; 275 OwnPtr<StorageNamespace> m_sessionStorage;
277 276
278 double m_timerAlignmentInterval; 277 double m_timerAlignmentInterval;
279 278
280 PageVisibilityState m_visibilityState; 279 PageVisibilityState m_visibilityState;
281 280
282 bool m_isCursorVisible; 281 bool m_isCursorVisible;
283 282
284 #ifndef NDEBUG 283 #ifndef NDEBUG
285 bool m_isPainting; 284 bool m_isPainting;
286 #endif 285 #endif
287 286
288 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; 287 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
289 288
290 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 289 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
291 // FIXME: Most of the members of Page should move onto FrameHost. 290 // FIXME: Most of the members of Page should move onto FrameHost.
292 OwnPtr<FrameHost> m_frameHost; 291 OwnPtr<FrameHost> m_frameHost;
293 }; 292 };
294 293
295 } // namespace WebCore 294 } // namespace WebCore
296 295
297 #endif // Page_h 296 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698