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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 class ChromeClient; | 44 class ChromeClient; |
45 class ConsoleMessageStorage; | 45 class ConsoleMessageStorage; |
46 class CustomElementReactionStack; | 46 class CustomElementReactionStack; |
47 class Deprecation; | 47 class Deprecation; |
48 class EventHandlerRegistry; | 48 class EventHandlerRegistry; |
49 class OverscrollController; | 49 class OverscrollController; |
50 class Page; | 50 class Page; |
51 struct PageScaleConstraints; | 51 struct PageScaleConstraints; |
52 class PageScaleConstraintsSet; | 52 class PageScaleConstraintsSet; |
53 class RootScroller; | |
54 class Settings; | 53 class Settings; |
55 class TopControls; | 54 class TopControls; |
56 class UseCounter; | 55 class UseCounter; |
57 class Visitor; | 56 class Visitor; |
58 class VisualViewport; | 57 class VisualViewport; |
59 | 58 |
60 // FrameHost is the set of global data shared between multiple frames | 59 // FrameHost is the set of global data shared between multiple frames |
61 // and is provided by the embedder to each frame when created. | 60 // and is provided by the embedder to each frame when created. |
62 // FrameHost currently corresponds to the Page object in core/page | 61 // FrameHost currently corresponds to the Page object in core/page |
63 // 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 27 matching lines...) Expand all Loading... |
91 // Corresponds to pixel density of the device where this Page is | 90 // Corresponds to pixel density of the device where this Page is |
92 // being displayed. In multi-monitor setups this can vary between pages. | 91 // being displayed. In multi-monitor setups this can vary between pages. |
93 // 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. |
94 // This is to be deprecated. Use this with caution. | 93 // This is to be deprecated. Use this with caution. |
95 // 1) If you need to scale the content per device scale factor, this is stil
l valid. | 94 // 1) If you need to scale the content per device scale factor, this is stil
l valid. |
96 // In use-zoom-for-dsf mode, this is always 1, and will be remove when tr
ansition is complete. | 95 // In use-zoom-for-dsf mode, this is always 1, and will be remove when tr
ansition is complete. |
97 // 2) If you want to compute the device related measure (such as device pixe
l height, or the scale factor for drag image), | 96 // 2) If you want to compute the device related measure (such as device pixe
l height, or the scale factor for drag image), |
98 // use ChromeClient::screenInfo() instead. | 97 // use ChromeClient::screenInfo() instead. |
99 float deviceScaleFactorDeprecated() const; | 98 float deviceScaleFactorDeprecated() const; |
100 | 99 |
101 RootScroller* rootScroller(); | |
102 const RootScroller* rootScroller() const; | |
103 | |
104 TopControls& topControls(); | 100 TopControls& topControls(); |
105 const TopControls& topControls() const; | 101 const TopControls& topControls() const; |
106 | 102 |
107 OverscrollController& overscrollController(); | 103 OverscrollController& overscrollController(); |
108 const OverscrollController& overscrollController() const; | 104 const OverscrollController& overscrollController() const; |
109 | 105 |
110 VisualViewport& visualViewport(); | 106 VisualViewport& visualViewport(); |
111 const VisualViewport& visualViewport() const; | 107 const VisualViewport& visualViewport() const; |
112 | 108 |
113 PageScaleConstraintsSet& pageScaleConstraintsSet(); | 109 PageScaleConstraintsSet& pageScaleConstraintsSet(); |
(...skipping 22 matching lines...) Expand all Loading... |
136 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} | 132 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} |
137 int subframeCount() const; | 133 int subframeCount() const; |
138 | 134 |
139 void setDefaultPageScaleLimits(float minScale, float maxScale); | 135 void setDefaultPageScaleLimits(float minScale, float maxScale); |
140 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); | 136 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); |
141 | 137 |
142 private: | 138 private: |
143 explicit FrameHost(Page&); | 139 explicit FrameHost(Page&); |
144 | 140 |
145 const Member<Page> m_page; | 141 const Member<Page> m_page; |
146 const Member<RootScroller> m_rootScroller; | |
147 const Member<TopControls> m_topControls; | 142 const Member<TopControls> m_topControls; |
148 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; | 143 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; |
149 const Member<VisualViewport> m_visualViewport; | 144 const Member<VisualViewport> m_visualViewport; |
150 const Member<OverscrollController> m_overscrollController; | 145 const Member<OverscrollController> m_overscrollController; |
151 const Member<EventHandlerRegistry> m_eventHandlerRegistry; | 146 const Member<EventHandlerRegistry> m_eventHandlerRegistry; |
152 const Member<ConsoleMessageStorage> m_consoleMessageStorage; | 147 const Member<ConsoleMessageStorage> m_consoleMessageStorage; |
153 const Member<CustomElementReactionStack> m_customElementReactionStack; | 148 const Member<CustomElementReactionStack> m_customElementReactionStack; |
154 | 149 |
155 AtomicString m_overrideEncoding; | 150 AtomicString m_overrideEncoding; |
156 int m_subframeCount; | 151 int m_subframeCount; |
157 }; | 152 }; |
158 | 153 |
159 } // namespace blink | 154 } // namespace blink |
160 | 155 |
161 #endif // FrameHost_h | 156 #endif // FrameHost_h |
OLD | NEW |