| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class Frame; | 49 class Frame; |
| 50 class FrameHost; | 50 class FrameHost; |
| 51 class PageLifecycleNotifier; | 51 class PageLifecycleNotifier; |
| 52 class PlatformMouseEvent; | 52 class PlatformMouseEvent; |
| 53 class Range; | 53 class Range; |
| 54 class RenderBox; | 54 class RenderBox; |
| 55 class RenderObject; | 55 class RenderObject; |
| 56 class VisibleSelection; | 56 class VisibleSelection; |
| 57 class ScrollableArea; | 57 class ScrollableArea; |
| 58 class ScrollingCoordinator; | 58 class ScrollingCoordinator; |
| 59 class ServiceProvider; |
| 59 class Settings; | 60 class Settings; |
| 60 class SpellCheckerClient; | 61 class SpellCheckerClient; |
| 61 class UndoStack; | 62 class UndoStack; |
| 62 | 63 |
| 63 typedef uint64_t LinkHash; | 64 typedef uint64_t LinkHash; |
| 64 | 65 |
| 65 float deviceScaleFactor(LocalFrame*); | 66 float deviceScaleFactor(LocalFrame*); |
| 66 | 67 |
| 67 class Page final : public DummyBase<Page>, public Supplementable<Page>, public L
ifecycleContext<Page>, public SettingsDelegate { | 68 class Page final : public DummyBase<Page>, public Supplementable<Page>, public L
ifecycleContext<Page>, public SettingsDelegate { |
| 68 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Page); | 69 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Page); |
| 69 WTF_MAKE_NONCOPYABLE(Page); | 70 WTF_MAKE_NONCOPYABLE(Page); |
| 70 friend class Settings; | 71 friend class Settings; |
| 71 public: | 72 public: |
| 72 static void scheduleForcedStyleRecalcForAllPages(); | 73 static void scheduleForcedStyleRecalcForAllPages(); |
| 73 | 74 |
| 74 // It is up to the platform to ensure that non-null clients are provided whe
re required. | 75 // It is up to the platform to ensure that non-null clients are provided whe
re required. |
| 75 struct PageClients { | 76 struct PageClients { |
| 76 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; | 77 WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED; |
| 77 public: | 78 public: |
| 78 PageClients(); | 79 PageClients(); |
| 79 ~PageClients(); | 80 ~PageClients(); |
| 80 | 81 |
| 81 ChromeClient* chromeClient; | 82 ChromeClient* chromeClient; |
| 82 EditorClient* editorClient; | 83 EditorClient* editorClient; |
| 83 SpellCheckerClient* spellCheckerClient; | 84 SpellCheckerClient* spellCheckerClient; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 explicit Page(PageClients&); | 87 Page(PageClients&, ServiceProvider*); |
| 87 virtual ~Page(); | 88 virtual ~Page(); |
| 88 | 89 |
| 89 void makeOrdinary(); | 90 void makeOrdinary(); |
| 90 | 91 |
| 91 // This method returns all pages, incl. private ones associated with | 92 // This method returns all pages, incl. private ones associated with |
| 92 // inspector overlay, popups, SVGImage, etc. | 93 // inspector overlay, popups, SVGImage, etc. |
| 93 static HashSet<Page*>& allPages(); | 94 static HashSet<Page*>& allPages(); |
| 94 // This method returns all ordinary pages. | 95 // This method returns all ordinary pages. |
| 95 static HashSet<Page*>& ordinaryPages(); | 96 static HashSet<Page*>& ordinaryPages(); |
| 96 | 97 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve
rs; | 223 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve
rs; |
| 223 | 224 |
| 224 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 225 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 225 // FIXME: Most of the members of Page should move onto FrameHost. | 226 // FIXME: Most of the members of Page should move onto FrameHost. |
| 226 OwnPtr<FrameHost> m_frameHost; | 227 OwnPtr<FrameHost> m_frameHost; |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 } // namespace blink | 230 } // namespace blink |
| 230 | 231 |
| 231 #endif // Page_h | 232 #endif // Page_h |
| OLD | NEW |