| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); | 73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); |
| 74 GraphicsLayer* rootGraphicsLayer() | 74 GraphicsLayer* rootGraphicsLayer() |
| 75 { | 75 { |
| 76 return m_rootTransformLayer.get(); | 76 return m_rootTransformLayer.get(); |
| 77 } | 77 } |
| 78 GraphicsLayer* containerLayer() | 78 GraphicsLayer* containerLayer() |
| 79 { | 79 { |
| 80 return m_innerViewportContainerLayer.get(); | 80 return m_innerViewportContainerLayer.get(); |
| 81 } | 81 } |
| 82 GraphicsLayer* scrollLayer() |
| 83 { |
| 84 return m_innerViewportScrollLayer.get(); |
| 85 } |
| 82 | 86 |
| 83 // Sets the location of the inner viewport relative to the outer viewport. T
he | 87 // Sets the location of the inner viewport relative to the outer viewport. T
he |
| 84 // coordinates are in partial CSS pixels. | 88 // coordinates are in partial CSS pixels. |
| 85 void setLocation(const FloatPoint&); | 89 void setLocation(const FloatPoint&); |
| 86 void move(const FloatPoint&); | 90 void move(const FloatPoint&); |
| 87 FloatPoint location() const { return m_offset; } | 91 FloatPoint location() const { return m_offset; } |
| 88 | 92 |
| 89 // Sets the size of the inner viewport when unscaled in CSS pixels. | 93 // Sets the size of the inner viewport when unscaled in CSS pixels. |
| 90 // This will be clamped to the size of the outer viewport (the main frame). | 94 // This will be clamped to the size of the outer viewport (the main frame). |
| 91 void setSize(const IntSize&); | 95 void setSize(const IntSize&); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 181 |
| 178 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. | 182 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. |
| 179 FloatPoint m_offset; | 183 FloatPoint m_offset; |
| 180 float m_scale; | 184 float m_scale; |
| 181 IntSize m_size; | 185 IntSize m_size; |
| 182 }; | 186 }; |
| 183 | 187 |
| 184 } // namespace blink | 188 } // namespace blink |
| 185 | 189 |
| 186 #endif // PinchViewport_h | 190 #endif // PinchViewport_h |
| OLD | NEW |