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

Unified Diff: cc/scrollbar_animation_controller.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scoped_texture.cc ('k') | cc/scrollbar_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_animation_controller.h
diff --git a/cc/scrollbar_animation_controller.h b/cc/scrollbar_animation_controller.h
index 9b9c2cacecf20b5cfc59d0dd828826bfcf6bdd78..bccd9921f1ff83868018cab936a2c32dd790ca90 100644
--- a/cc/scrollbar_animation_controller.h
+++ b/cc/scrollbar_animation_controller.h
@@ -9,6 +9,10 @@
#include "FloatPoint.h"
#include "IntSize.h"
+namespace gfx {
+class Size;
+}
+
namespace cc {
class LayerImpl;
@@ -35,7 +39,7 @@ public:
ScrollbarLayerImpl* verticalScrollbarLayer() const { return m_verticalScrollbarLayer; }
FloatPoint currentPos() const { return m_currentPos; }
- IntSize totalSize() const { return m_totalSize; }
+ gfx::Size totalSize() const { return m_totalSize; }
IntSize maximum() const { return m_maximum; }
virtual void didPinchGestureBeginAtTime(double monotonicTime) { }
@@ -47,14 +51,14 @@ protected:
explicit ScrollbarAnimationController(LayerImpl* scrollLayer);
private:
- static IntSize getScrollLayerBounds(const LayerImpl*);
+ static gfx::Size getScrollLayerBounds(const LayerImpl*);
// Beware of dangling pointer. Always update these during tree synchronization.
ScrollbarLayerImpl* m_horizontalScrollbarLayer;
ScrollbarLayerImpl* m_verticalScrollbarLayer;
FloatPoint m_currentPos;
- IntSize m_totalSize;
+ gfx::Size m_totalSize;
IntSize m_maximum;
};
« no previous file with comments | « cc/scoped_texture.cc ('k') | cc/scrollbar_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698