OLD | NEW |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 class ScrollableArea; | 73 class ScrollableArea; |
74 class ScrollingCoordinator; | 74 class ScrollingCoordinator; |
75 class Settings; | 75 class Settings; |
76 class StorageNamespace; | 76 class StorageNamespace; |
77 class ValidationMessageClient; | 77 class ValidationMessageClient; |
78 | 78 |
79 typedef uint64_t LinkHash; | 79 typedef uint64_t LinkHash; |
80 | 80 |
81 float deviceScaleFactor(Frame*); | 81 float deviceScaleFactor(Frame*); |
82 | 82 |
83 struct ArenaSize { | |
84 ArenaSize(size_t treeSize, size_t allocated) | |
85 : treeSize(treeSize) | |
86 , allocated(allocated) | |
87 { | |
88 } | |
89 size_t treeSize; | |
90 size_t allocated; | |
91 }; | |
92 | |
93 class Page : public Supplementable<Page>, public LifecycleContext { | 83 class Page : public Supplementable<Page>, public LifecycleContext { |
94 WTF_MAKE_NONCOPYABLE(Page); | 84 WTF_MAKE_NONCOPYABLE(Page); |
95 friend class Settings; | 85 friend class Settings; |
96 public: | 86 public: |
97 static void scheduleForcedStyleRecalcForAllPages(); | 87 static void scheduleForcedStyleRecalcForAllPages(); |
98 | 88 |
99 // It is up to the platform to ensure that non-null clients are provided whe
re required. | 89 // It is up to the platform to ensure that non-null clients are provided whe
re required. |
100 struct PageClients { | 90 struct PageClients { |
101 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; | 91 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; |
102 public: | 92 public: |
103 PageClients(); | 93 PageClients(); |
104 ~PageClients(); | 94 ~PageClients(); |
105 | 95 |
106 ChromeClient* chromeClient; | 96 ChromeClient* chromeClient; |
107 ContextMenuClient* contextMenuClient; | 97 ContextMenuClient* contextMenuClient; |
108 EditorClient* editorClient; | 98 EditorClient* editorClient; |
109 DragClient* dragClient; | 99 DragClient* dragClient; |
110 InspectorClient* inspectorClient; | 100 InspectorClient* inspectorClient; |
111 BackForwardClient* backForwardClient; | 101 BackForwardClient* backForwardClient; |
112 }; | 102 }; |
113 | 103 |
114 explicit Page(PageClients&); | 104 explicit Page(PageClients&); |
115 ~Page(); | 105 ~Page(); |
116 | 106 |
117 ArenaSize renderTreeSize() const; | |
118 | |
119 void setNeedsRecalcStyleInAllFrames(); | 107 void setNeedsRecalcStyleInAllFrames(); |
120 | 108 |
121 RenderTheme* theme() const { return m_theme.get(); } | 109 RenderTheme* theme() const { return m_theme.get(); } |
122 | 110 |
123 ViewportArguments viewportArguments() const; | 111 ViewportArguments viewportArguments() const; |
124 | 112 |
125 static void refreshPlugins(bool reload); | 113 static void refreshPlugins(bool reload); |
126 PluginData* pluginData() const; | 114 PluginData* pluginData() const; |
127 | 115 |
128 EditorClient* editorClient() const { return m_editorClient; } | 116 EditorClient* editorClient() const { return m_editorClient; } |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 #endif | 323 #endif |
336 | 324 |
337 const OwnPtr<PageConsole> m_console; | 325 const OwnPtr<PageConsole> m_console; |
338 | 326 |
339 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; | 327 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; |
340 }; | 328 }; |
341 | 329 |
342 } // namespace WebCore | 330 } // namespace WebCore |
343 | 331 |
344 #endif // Page_h | 332 #endif // Page_h |
OLD | NEW |