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

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

Issue 14320022: Warn developers about deprecated features only once per page-load. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 "UseCounter.h" 24 #include "DeprecationAgent.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 "UseCounter.h"
34 #include "ViewportArguments.h" 35 #include "ViewportArguments.h"
35 #include <wtf/Forward.h> 36 #include <wtf/Forward.h>
36 #include <wtf/HashMap.h> 37 #include <wtf/HashMap.h>
37 #include <wtf/HashSet.h> 38 #include <wtf/HashSet.h>
38 #include <wtf/Noncopyable.h> 39 #include <wtf/Noncopyable.h>
39 #include <wtf/text/WTFString.h> 40 #include <wtf/text/WTFString.h>
40 41
41 #if OS(SOLARIS) 42 #if OS(SOLARIS)
42 #include <sys/time.h> // For time_t structure. 43 #include <sys/time.h> // For time_t structure.
43 #endif 44 #endif
44 45
45 namespace WebCore { 46 namespace WebCore {
46 47
47 class AlternativeTextClient; 48 class AlternativeTextClient;
48 class BackForwardController; 49 class BackForwardController;
49 class BackForwardList; 50 class BackForwardList;
50 class Chrome; 51 class Chrome;
51 class ChromeClient; 52 class ChromeClient;
52 class ClientRectList; 53 class ClientRectList;
53 class ContextMenuClient; 54 class ContextMenuClient;
54 class ContextMenuController; 55 class ContextMenuController;
55 class Document; 56 class Document;
57 class DeprecationAgent;
56 class DragCaretController; 58 class DragCaretController;
57 class DragClient; 59 class DragClient;
58 class DragController; 60 class DragController;
59 class EditorClient; 61 class EditorClient;
60 class FocusController; 62 class FocusController;
61 class Frame; 63 class Frame;
62 class FrameSelection; 64 class FrameSelection;
63 class HaltablePlugin; 65 class HaltablePlugin;
64 class HistoryItem; 66 class HistoryItem;
65 class InspectorClient; 67 class InspectorClient;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 184
183 String mainThreadScrollingReasonsAsText(); 185 String mainThreadScrollingReasonsAsText();
184 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*); 186 PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*);
185 187
186 Settings* settings() const { return m_settings.get(); } 188 Settings* settings() const { return m_settings.get(); }
187 ProgressTracker* progress() const { return m_progress.get(); } 189 ProgressTracker* progress() const { return m_progress.get(); }
188 BackForwardController* backForward() const { return m_backForwardController. get(); } 190 BackForwardController* backForward() const { return m_backForwardController. get(); }
189 191
190 UseCounter* useCounter() { return &m_UseCounter; } 192 UseCounter* useCounter() { return &m_UseCounter; }
191 193
194 DeprecationAgent* deprecationAgent() { return &m_deprecationAgent; }
195
192 enum ViewMode { 196 enum ViewMode {
193 ViewModeInvalid, 197 ViewModeInvalid,
194 ViewModeWindowed, 198 ViewModeWindowed,
195 ViewModeFloating, 199 ViewModeFloating,
196 ViewModeFullscreen, 200 ViewModeFullscreen,
197 ViewModeMaximized, 201 ViewModeMaximized,
198 ViewModeMinimized 202 ViewModeMinimized
199 }; 203 };
200 static ViewMode stringToViewMode(const String&); 204 static ViewMode stringToViewMode(const String&);
201 205
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 mutable RefPtr<PluginData> m_pluginData; 371 mutable RefPtr<PluginData> m_pluginData;
368 372
369 RefPtr<RenderTheme> m_theme; 373 RefPtr<RenderTheme> m_theme;
370 374
371 EditorClient* m_editorClient; 375 EditorClient* m_editorClient;
372 PlugInClient* m_plugInClient; 376 PlugInClient* m_plugInClient;
373 ValidationMessageClient* m_validationMessageClient; 377 ValidationMessageClient* m_validationMessageClient;
374 378
375 UseCounter m_UseCounter; 379 UseCounter m_UseCounter;
376 380
381 DeprecationAgent m_deprecationAgent;
382
377 int m_subframeCount; 383 int m_subframeCount;
378 String m_groupName; 384 String m_groupName;
379 bool m_openedByDOM; 385 bool m_openedByDOM;
380 386
381 bool m_tabKeyCyclesThroughElements; 387 bool m_tabKeyCyclesThroughElements;
382 bool m_defersLoading; 388 bool m_defersLoading;
383 unsigned m_defersLoadingCallCount; 389 unsigned m_defersLoadingCallCount;
384 390
385 bool m_inLowQualityInterpolationMode; 391 bool m_inLowQualityInterpolationMode;
386 bool m_cookieEnabled; 392 bool m_cookieEnabled;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 inline PageGroup& Page::group() 448 inline PageGroup& Page::group()
443 { 449 {
444 if (!m_group) 450 if (!m_group)
445 initGroup(); 451 initGroup();
446 return *m_group; 452 return *m_group;
447 } 453 }
448 454
449 } // namespace WebCore 455 } // namespace WebCore
450 456
451 #endif // Page_h 457 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698