| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class ChromeClient; | 44 class ChromeClient; |
| 45 class ConsoleMessageStorage; | 45 class ConsoleMessageStorage; |
| 46 class Deprecation; | 46 class Deprecation; |
| 47 class EventHandlerRegistry; | 47 class EventHandlerRegistry; |
| 48 class OverscrollController; | 48 class OverscrollController; |
| 49 class Page; | 49 class Page; |
| 50 struct PageScaleConstraints; | 50 struct PageScaleConstraints; |
| 51 class PageScaleConstraintsSet; | 51 class PageScaleConstraintsSet; |
| 52 class RootScroller; |
| 52 class Settings; | 53 class Settings; |
| 53 class TopControls; | 54 class TopControls; |
| 54 class UseCounter; | 55 class UseCounter; |
| 55 class Visitor; | 56 class Visitor; |
| 56 class VisualViewport; | 57 class VisualViewport; |
| 57 | 58 |
| 58 // FrameHost is the set of global data shared between multiple frames | 59 // FrameHost is the set of global data shared between multiple frames |
| 59 // and is provided by the embedder to each frame when created. | 60 // and is provided by the embedder to each frame when created. |
| 60 // FrameHost currently corresponds to the Page object in core/page | 61 // FrameHost currently corresponds to the Page object in core/page |
| 61 // however the concept of a Page is moving up out of Blink. | 62 // however the concept of a Page is moving up out of Blink. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 84 const UseCounter& useCounter() const; | 85 const UseCounter& useCounter() const; |
| 85 | 86 |
| 86 Deprecation& deprecation(); | 87 Deprecation& deprecation(); |
| 87 const Deprecation& deprecation() const; | 88 const Deprecation& deprecation() const; |
| 88 | 89 |
| 89 // Corresponds to pixel density of the device where this Page is | 90 // Corresponds to pixel density of the device where this Page is |
| 90 // being displayed. In multi-monitor setups this can vary between pages. | 91 // being displayed. In multi-monitor setups this can vary between pages. |
| 91 // This value does not account for Page zoom, use LocalFrame::devicePixelRat
io instead. | 92 // This value does not account for Page zoom, use LocalFrame::devicePixelRat
io instead. |
| 92 float deviceScaleFactor() const; | 93 float deviceScaleFactor() const; |
| 93 | 94 |
| 95 RootScroller* rootScroller(); |
| 96 const RootScroller* rootScroller() const; |
| 97 |
| 94 TopControls& topControls(); | 98 TopControls& topControls(); |
| 95 const TopControls& topControls() const; | 99 const TopControls& topControls() const; |
| 96 | 100 |
| 97 OverscrollController& overscrollController(); | 101 OverscrollController& overscrollController(); |
| 98 const OverscrollController& overscrollController() const; | 102 const OverscrollController& overscrollController() const; |
| 99 | 103 |
| 100 VisualViewport& visualViewport(); | 104 VisualViewport& visualViewport(); |
| 101 const VisualViewport& visualViewport() const; | 105 const VisualViewport& visualViewport() const; |
| 102 | 106 |
| 103 PageScaleConstraintsSet& pageScaleConstraintsSet(); | 107 PageScaleConstraintsSet& pageScaleConstraintsSet(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 123 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} | 127 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} |
| 124 int subframeCount() const; | 128 int subframeCount() const; |
| 125 | 129 |
| 126 void setDefaultPageScaleLimits(float minScale, float maxScale); | 130 void setDefaultPageScaleLimits(float minScale, float maxScale); |
| 127 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); | 131 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); |
| 128 | 132 |
| 129 private: | 133 private: |
| 130 explicit FrameHost(Page&); | 134 explicit FrameHost(Page&); |
| 131 | 135 |
| 132 const Member<Page> m_page; | 136 const Member<Page> m_page; |
| 137 const Member<RootScroller> m_rootScroller; |
| 133 const Member<TopControls> m_topControls; | 138 const Member<TopControls> m_topControls; |
| 134 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; | 139 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; |
| 135 const Member<VisualViewport> m_visualViewport; | 140 const Member<VisualViewport> m_visualViewport; |
| 136 const Member<OverscrollController> m_overscrollController; | 141 const Member<OverscrollController> m_overscrollController; |
| 137 const Member<EventHandlerRegistry> m_eventHandlerRegistry; | 142 const Member<EventHandlerRegistry> m_eventHandlerRegistry; |
| 138 const Member<ConsoleMessageStorage> m_consoleMessageStorage; | 143 const Member<ConsoleMessageStorage> m_consoleMessageStorage; |
| 139 | 144 |
| 140 AtomicString m_overrideEncoding; | 145 AtomicString m_overrideEncoding; |
| 141 int m_subframeCount; | 146 int m_subframeCount; |
| 142 }; | 147 }; |
| 143 | 148 |
| 144 } // namespace blink | 149 } // namespace blink |
| 145 | 150 |
| 146 #endif // FrameHost_h | 151 #endif // FrameHost_h |
| OLD | NEW |