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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
68 | 68 |
69 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); | 69 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); |
70 GraphicsLayer* rootGraphicsLayer() | 70 GraphicsLayer* rootGraphicsLayer() |
71 { | 71 { |
72 return m_rootTransformLayer.get(); | 72 return m_rootTransformLayer.get(); |
73 } | 73 } |
74 GraphicsLayer* containerLayer() | 74 GraphicsLayer* containerLayer() |
75 { | 75 { |
76 return m_innerViewportContainerLayer.get(); | 76 return m_innerViewportContainerLayer.get(); |
77 } | 77 } |
78 GraphicsLayer* innerViewportScrollLayer() | |
bokan
2014/10/09 02:19:18
It's unambiguous and consistent with the above if
aelias_OOO_until_Jul13
2014/10/10 00:58:50
Done.
| |
79 { | |
80 return m_innerViewportScrollLayer.get(); | |
81 } | |
78 | 82 |
79 // Sets the location of the inner viewport relative to the outer viewport. T he | 83 // Sets the location of the inner viewport relative to the outer viewport. T he |
80 // coordinates are in partial CSS pixels. | 84 // coordinates are in partial CSS pixels. |
81 void setLocation(const FloatPoint&); | 85 void setLocation(const FloatPoint&); |
82 void move(const FloatPoint&); | 86 void move(const FloatPoint&); |
83 FloatPoint location() const { return m_offset; } | 87 FloatPoint location() const { return m_offset; } |
84 | 88 |
85 // Sets the size of the inner viewport when unscaled in CSS pixels. | 89 // Sets the size of the inner viewport when unscaled in CSS pixels. |
86 // This will be clamped to the size of the outer viewport (the main frame). | 90 // This will be clamped to the size of the outer viewport (the main frame). |
87 void setSize(const IntSize&); | 91 void setSize(const IntSize&); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 | 169 |
166 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. | 170 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. |
167 FloatPoint m_offset; | 171 FloatPoint m_offset; |
168 float m_scale; | 172 float m_scale; |
169 IntSize m_size; | 173 IntSize m_size; |
170 }; | 174 }; |
171 | 175 |
172 } // namespace blink | 176 } // namespace blink |
173 | 177 |
174 #endif // PinchViewport_h | 178 #endif // PinchViewport_h |
OLD | NEW |