Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: cc/layer_impl.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor for cleaner state/scrollbar split. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; } 209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; }
210 void setScrollOffset(gfx::Vector2d); 210 void setScrollOffset(gfx::Vector2d);
211 211
212 gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; } 212 gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; }
213 void setMaxScrollOffset(gfx::Vector2d); 213 void setMaxScrollOffset(gfx::Vector2d);
214 214
215 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; } 215 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; }
216 void setScrollDelta(const gfx::Vector2dF&); 216 void setScrollDelta(const gfx::Vector2dF&);
217 217
218 const gfx::Transform& implTransform() const { return m_implTransform; } 218 const gfx::Transform& implTransform() const { return m_implTransform; }
219 void setImplTransform(const gfx::Transform& transform); 219 virtual void setImplTransform(const gfx::Transform& transform);
220 220
221 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; } 221 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; }
222 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta); 222 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta);
223 223
224 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll 224 // Returns the delta of the scroll that was outside of the bounds of the ini tial scroll
225 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll); 225 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll);
226 226
227 bool scrollable() const { return m_scrollable; } 227 bool scrollable() const { return m_scrollable; }
228 void setScrollable(bool scrollable) { m_scrollable = scrollable; } 228 void setScrollable(bool scrollable) { m_scrollable = scrollable; }
229 229
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // Group of properties that need to be computed based on the layer tree 410 // Group of properties that need to be computed based on the layer tree
411 // hierarchy before layers can be drawn. 411 // hierarchy before layers can be drawn.
412 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 412 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
413 413
414 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 414 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
415 }; 415 };
416 416
417 } 417 }
418 418
419 #endif // CC_LAYER_IMPL_H_ 419 #endif // CC_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698