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

Unified Diff: cc/scrollbar_geometry_fixed_thumb.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/scrollbar_geometry_fixed_thumb.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_geometry_fixed_thumb.h
diff --git a/cc/scrollbar_geometry_fixed_thumb.h b/cc/scrollbar_geometry_fixed_thumb.h
deleted file mode 100644
index 8115707a03739d2c406b45f959c09306f9323e7b..0000000000000000000000000000000000000000
--- a/cc/scrollbar_geometry_fixed_thumb.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_SCROLLBAR_GEOMETRY_FIXED_THUMB_H_
-#define CC_SCROLLBAR_GEOMETRY_FIXED_THUMB_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/scrollbar_geometry_stub.h"
-#include "ui/gfx/size.h"
-
-namespace cc {
-
-// This scrollbar geometry class behaves exactly like a normal geometry except
-// it always returns a fixed thumb length. This allows a page to zoom (changing
-// the total size of the scrollable area, changing the thumb length) while not
-// requiring the thumb resource to be repainted.
-class CC_EXPORT ScrollbarGeometryFixedThumb : public ScrollbarGeometryStub {
-public:
- static scoped_ptr<ScrollbarGeometryFixedThumb> create(scoped_ptr<WebKit::WebScrollbarThemeGeometry>);
- virtual ~ScrollbarGeometryFixedThumb();
-
- void setThumbSize(gfx::Size size) { m_thumbSize = size; }
-
- // WebScrollbarThemeGeometry interface
- virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE;
- virtual int thumbLength(WebKit::WebScrollbar*) OVERRIDE;
- virtual int thumbPosition(WebKit::WebScrollbar*) OVERRIDE;
- virtual void splitTrack(WebKit::WebScrollbar*, const WebKit::WebRect& track, WebKit::WebRect& startTrack, WebKit::WebRect& thumb, WebKit::WebRect& endTrack) OVERRIDE;
-
-private:
- explicit ScrollbarGeometryFixedThumb(scoped_ptr<WebKit::WebScrollbarThemeGeometry>);
-
- gfx::Size m_thumbSize;
-};
-
-}
-
-#endif // CC_SCROLLBAR_GEOMETRY_FIXED_THUMB_H_
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/scrollbar_geometry_fixed_thumb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698