| 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 22 matching lines...) Expand all Loading... |
| 33 #include "platform/geometry/Region.h" | 33 #include "platform/geometry/Region.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 36 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
| 37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class AutoscrollController; | 42 class AutoscrollController; |
| 43 class BackForwardClient; | |
| 44 class Chrome; | 43 class Chrome; |
| 45 class ChromeClient; | 44 class ChromeClient; |
| 46 class ClientRectList; | 45 class ClientRectList; |
| 47 class ContextMenuClient; | 46 class ContextMenuClient; |
| 48 class ContextMenuController; | 47 class ContextMenuController; |
| 49 class Document; | 48 class Document; |
| 50 class DragCaretController; | 49 class DragCaretController; |
| 51 class DragClient; | 50 class DragClient; |
| 52 class DragController; | 51 class DragController; |
| 53 class EditorClient; | 52 class EditorClient; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 83 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; | 82 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; |
| 84 public: | 83 public: |
| 85 PageClients(); | 84 PageClients(); |
| 86 ~PageClients(); | 85 ~PageClients(); |
| 87 | 86 |
| 88 ChromeClient* chromeClient; | 87 ChromeClient* chromeClient; |
| 89 ContextMenuClient* contextMenuClient; | 88 ContextMenuClient* contextMenuClient; |
| 90 EditorClient* editorClient; | 89 EditorClient* editorClient; |
| 91 DragClient* dragClient; | 90 DragClient* dragClient; |
| 92 InspectorClient* inspectorClient; | 91 InspectorClient* inspectorClient; |
| 93 BackForwardClient* backForwardClient; | |
| 94 SpellCheckerClient* spellCheckerClient; | 92 SpellCheckerClient* spellCheckerClient; |
| 95 StorageClient* storageClient; | 93 StorageClient* storageClient; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 explicit Page(PageClients&); | 96 explicit Page(PageClients&); |
| 99 virtual ~Page(); | 97 virtual ~Page(); |
| 100 | 98 |
| 101 void makeOrdinary(); | 99 void makeOrdinary(); |
| 102 | 100 |
| 103 // This method returns all pages, incl. private ones associated with | 101 // This method returns all pages, incl. private ones associated with |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 PointerLockController& pointerLockController() const { return *m_pointerLock
Controller; } | 143 PointerLockController& pointerLockController() const { return *m_pointerLock
Controller; } |
| 146 ValidationMessageClient& validationMessageClient() const { return *m_validat
ionMessageClient; } | 144 ValidationMessageClient& validationMessageClient() const { return *m_validat
ionMessageClient; } |
| 147 void setValidationMessageClient(PassOwnPtrWillBeRawPtr<ValidationMessageClie
nt>); | 145 void setValidationMessageClient(PassOwnPtrWillBeRawPtr<ValidationMessageClie
nt>); |
| 148 | 146 |
| 149 ScrollingCoordinator* scrollingCoordinator(); | 147 ScrollingCoordinator* scrollingCoordinator(); |
| 150 | 148 |
| 151 String mainThreadScrollingReasonsAsText(); | 149 String mainThreadScrollingReasonsAsText(); |
| 152 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra
me*); | 150 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra
me*); |
| 153 | 151 |
| 154 Settings& settings() const { return *m_settings; } | 152 Settings& settings() const { return *m_settings; } |
| 155 BackForwardClient& backForward() const { return *m_backForwardClient; } | |
| 156 | 153 |
| 157 UseCounter& useCounter() { return m_useCounter; } | 154 UseCounter& useCounter() { return m_useCounter; } |
| 158 | 155 |
| 159 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } | 156 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } |
| 160 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } | 157 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } |
| 161 | 158 |
| 162 void unmarkAllTextMatches(); | 159 void unmarkAllTextMatches(); |
| 163 | 160 |
| 164 // DefersLoading is used to delay loads during modal dialogs. | 161 // DefersLoading is used to delay loads during modal dialogs. |
| 165 // Modal dialogs are supposed to freeze all background processes | 162 // Modal dialogs are supposed to freeze all background processes |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // WebPagePopupImpl) which don't hold a reference to the main frame at all | 243 // WebPagePopupImpl) which don't hold a reference to the main frame at all |
| 247 // after creating it. These are still safe because they always create a | 244 // after creating it. These are still safe because they always create a |
| 248 // Frame with a FrameView. FrameView and Frame hold references to each | 245 // Frame with a FrameView. FrameView and Frame hold references to each |
| 249 // other, thus keeping each other alive. The call to willBeDestroyed() | 246 // other, thus keeping each other alive. The call to willBeDestroyed() |
| 250 // breaks this cycle, so the frame is still properly destroyed once no | 247 // breaks this cycle, so the frame is still properly destroyed once no |
| 251 // longer needed. | 248 // longer needed. |
| 252 RawPtrWillBeMember<Frame> m_mainFrame; | 249 RawPtrWillBeMember<Frame> m_mainFrame; |
| 253 | 250 |
| 254 mutable RefPtr<PluginData> m_pluginData; | 251 mutable RefPtr<PluginData> m_pluginData; |
| 255 | 252 |
| 256 BackForwardClient* m_backForwardClient; | |
| 257 EditorClient* const m_editorClient; | 253 EditorClient* const m_editorClient; |
| 258 SpellCheckerClient* const m_spellCheckerClient; | 254 SpellCheckerClient* const m_spellCheckerClient; |
| 259 StorageClient* m_storageClient; | 255 StorageClient* m_storageClient; |
| 260 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; | 256 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; |
| 261 | 257 |
| 262 UseCounter m_useCounter; | 258 UseCounter m_useCounter; |
| 263 | 259 |
| 264 bool m_openedByDOM; | 260 bool m_openedByDOM; |
| 265 | 261 |
| 266 bool m_tabKeyCyclesThroughElements; | 262 bool m_tabKeyCyclesThroughElements; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 283 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m
ultisamplingChangedObservers; | 279 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m
ultisamplingChangedObservers; |
| 284 | 280 |
| 285 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 281 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 286 // FIXME: Most of the members of Page should move onto FrameHost. | 282 // FIXME: Most of the members of Page should move onto FrameHost. |
| 287 OwnPtrWillBeMember<FrameHost> m_frameHost; | 283 OwnPtrWillBeMember<FrameHost> m_frameHost; |
| 288 }; | 284 }; |
| 289 | 285 |
| 290 } // namespace blink | 286 } // namespace blink |
| 291 | 287 |
| 292 #endif // Page_h | 288 #endif // Page_h |
| OLD | NEW |