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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void didChangeContentsSize(IntSize contentsSize, float pageScaleFactor); | 78 void didChangeContentsSize(IntSize contentsSize, float pageScaleFactor); |
79 | 79 |
80 // This should be set to true on each page load to note that the page scale | 80 // This should be set to true on each page load to note that the page scale |
81 // factor needs to be reset to its initial value. | 81 // factor needs to be reset to its initial value. |
82 void setNeedsReset(bool); | 82 void setNeedsReset(bool); |
83 bool needsReset() const { return m_needsReset; } | 83 bool needsReset() const { return m_needsReset; } |
84 | 84 |
85 // This is set when one of the inputs to finalConstraints changes. | 85 // This is set when one of the inputs to finalConstraints changes. |
86 bool constraintsDirty() const { return m_constraintsDirty; } | 86 bool constraintsDirty() const { return m_constraintsDirty; } |
87 | 87 |
88 void didChangeViewSize(const IntSize&); | 88 void didChangeInitialContainingBlockSize(const IntSize&); |
89 | |
90 IntSize mainFrameSize() const; | |
91 | 89 |
92 IntSize layoutSize() const; | 90 IntSize layoutSize() const; |
93 | 91 |
94 private: | 92 private: |
95 PageScaleConstraintsSet(); | 93 PageScaleConstraintsSet(); |
96 | 94 |
97 PageScaleConstraints computeConstraintsStack() const; | 95 PageScaleConstraints computeConstraintsStack() const; |
98 | 96 |
99 PageScaleConstraints m_defaultConstraints; | 97 PageScaleConstraints m_defaultConstraints; |
100 PageScaleConstraints m_pageDefinedConstraints; | 98 PageScaleConstraints m_pageDefinedConstraints; |
101 PageScaleConstraints m_userAgentConstraints; | 99 PageScaleConstraints m_userAgentConstraints; |
102 PageScaleConstraints m_fullscreenConstraints; | 100 PageScaleConstraints m_fullscreenConstraints; |
103 PageScaleConstraints m_finalConstraints; | 101 PageScaleConstraints m_finalConstraints; |
104 | 102 |
105 int m_lastContentsWidth; | 103 int m_lastContentsWidth; |
106 IntSize m_viewSize; | 104 IntSize m_icbSize; |
107 | 105 |
108 bool m_needsReset; | 106 bool m_needsReset; |
109 bool m_constraintsDirty; | 107 bool m_constraintsDirty; |
110 }; | 108 }; |
111 | 109 |
112 } // namespace blink | 110 } // namespace blink |
113 | 111 |
114 #endif // PageScaleConstraintsSet_h | 112 #endif // PageScaleConstraintsSet_h |
OLD | NEW |