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

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

Issue 14301003: Rename FeatureObserver to UseCounter to make clear that all it stores are usage counts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now with 20% more awesome Created 7 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 | Annotate | Revision Log
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 "FeatureObserver.h" 24 #include "UseCounter.h"
25 #include "FindOptions.h" 25 #include "FindOptions.h"
26 #include "FrameLoaderTypes.h" 26 #include "FrameLoaderTypes.h"
27 #include "LayoutMilestones.h" 27 #include "LayoutMilestones.h"
28 #include "LayoutRect.h" 28 #include "LayoutRect.h"
29 #include "PageVisibilityState.h" 29 #include "PageVisibilityState.h"
30 #include "Pagination.h" 30 #include "Pagination.h"
31 #include "PlatformScreen.h" 31 #include "PlatformScreen.h"
32 #include "Region.h" 32 #include "Region.h"
33 #include "Supplementable.h" 33 #include "Supplementable.h"
34 #include "ViewportArguments.h" 34 #include "ViewportArguments.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 ScrollingCoordinator* scrollingCoordinator(); 185 ScrollingCoordinator* scrollingCoordinator();
186 186
187 String mainThreadScrollingReasonsAsText(); 187 String mainThreadScrollingReasonsAsText();
188 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*); 188 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*);
189 189
190 Settings* settings() const { return m_settings.get(); } 190 Settings* settings() const { return m_settings.get(); }
191 ProgressTracker* progress() const { return m_progress.get(); } 191 ProgressTracker* progress() const { return m_progress.get(); }
192 BackForwardController* backForward() const { return m_backForwardController. get(); } 192 BackForwardController* backForward() const { return m_backForwardController. get(); }
193 193
194 FeatureObserver* featureObserver() { return &m_featureObserver; } 194 UseCounter* useCounter() { return &m_UseCounter; }
195 195
196 enum ViewMode { 196 enum ViewMode {
197 ViewModeInvalid, 197 ViewModeInvalid,
198 ViewModeWindowed, 198 ViewModeWindowed,
199 ViewModeFloating, 199 ViewModeFloating,
200 ViewModeFullscreen, 200 ViewModeFullscreen,
201 ViewModeMaximized, 201 ViewModeMaximized,
202 ViewModeMinimized 202 ViewModeMinimized
203 }; 203 };
204 static ViewMode stringToViewMode(const String&); 204 static ViewMode stringToViewMode(const String&);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 RefPtr<Frame> m_mainFrame; 371 RefPtr<Frame> m_mainFrame;
372 372
373 mutable RefPtr<PluginData> m_pluginData; 373 mutable RefPtr<PluginData> m_pluginData;
374 374
375 RefPtr<RenderTheme> m_theme; 375 RefPtr<RenderTheme> m_theme;
376 376
377 EditorClient* m_editorClient; 377 EditorClient* m_editorClient;
378 PlugInClient* m_plugInClient; 378 PlugInClient* m_plugInClient;
379 ValidationMessageClient* m_validationMessageClient; 379 ValidationMessageClient* m_validationMessageClient;
380 380
381 FeatureObserver m_featureObserver; 381 UseCounter m_UseCounter;
382 382
383 int m_subframeCount; 383 int m_subframeCount;
384 String m_groupName; 384 String m_groupName;
385 bool m_openedByDOM; 385 bool m_openedByDOM;
386 386
387 bool m_tabKeyCyclesThroughElements; 387 bool m_tabKeyCyclesThroughElements;
388 bool m_defersLoading; 388 bool m_defersLoading;
389 unsigned m_defersLoadingCallCount; 389 unsigned m_defersLoadingCallCount;
390 390
391 bool m_inLowQualityInterpolationMode; 391 bool m_inLowQualityInterpolationMode;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 inline PageGroup& Page::group() 448 inline PageGroup& Page::group()
449 { 449 {
450 if (!m_group) 450 if (!m_group)
451 initGroup(); 451 initGroup();
452 return *m_group; 452 return *m_group;
453 } 453 }
454 454
455 } // namespace WebCore 455 } // namespace WebCore
456 456
457 #endif // Page_h 457 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698