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

Unified Diff: cc/pinch_zoom_scrollbar.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: Rebase to fix collision with solid colour scrollbars patch. 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/layer_tree_settings.cc ('k') | cc/pinch_zoom_scrollbar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/pinch_zoom_scrollbar.h
diff --git a/cc/pinch_zoom_scrollbar.h b/cc/pinch_zoom_scrollbar.h
new file mode 100644
index 0000000000000000000000000000000000000000..9cd3e74d750ffb927e7747a8407a35a81c684306
--- /dev/null
+++ b/cc/pinch_zoom_scrollbar.h
@@ -0,0 +1,52 @@
+// Copyright 2013 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_PINCH_ZOOM_SCROLLBAR_H_
+#define CC_PINCH_ZOOM_SCROLLBAR_H_
+
+#include "cc/cc_export.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
+
+namespace cc {
+
+class LayerTreeHost;
+
+class PinchZoomScrollbar : public WebKit::WebScrollbar {
+ public:
+ static const float kDefaultOpacity;
+ static const float kFadeDurationInSeconds;
+
+ PinchZoomScrollbar(
+ WebKit::WebScrollbar::Orientation orientation,
+ LayerTreeHost* owner);
+ virtual ~PinchZoomScrollbar() {}
+
+ // Implement WebKit::WebScrollbar.
+ virtual bool isOverlay() const;
+ virtual int value() const;
+ virtual WebKit::WebPoint location() const;
+ virtual WebKit::WebSize size() const;
+ virtual bool enabled() const;
+ virtual int maximum() const;
+ virtual int totalSize() const;
+ virtual bool isScrollViewScrollbar() const;
+ virtual bool isScrollableAreaActive() const;
+ virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const {}
+ virtual WebKit::WebScrollbar::ScrollbarControlSize controlSize() const;
+ virtual WebKit::WebScrollbar::ScrollbarPart pressedPart() const;
+ virtual WebKit::WebScrollbar::ScrollbarPart hoveredPart() const;
+ virtual WebKit::WebScrollbar::ScrollbarOverlayStyle
+ scrollbarOverlayStyle() const;
+ virtual bool isCustomScrollbar() const;
+ virtual WebKit::WebScrollbar::Orientation orientation() const;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbar);
+
+ WebKit::WebScrollbar::Orientation orientation_;
+ LayerTreeHost* owner_;
+}; // class PinchZoomScrollbar
+
+} // namespace cc
+#endif // CC_PINCH_ZOOM_SCROLLBAR_H_
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/pinch_zoom_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698