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

Unified Diff: ui/views/controls/scrollbar/scroll_bar.h

Issue 16171010: Introduces a new scrollbar for message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetVisibleSize -> GetContentOverlapSize Created 7 years, 6 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 | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/scrollbar/scroll_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/scroll_bar.h
diff --git a/ui/views/controls/scrollbar/scroll_bar.h b/ui/views/controls/scrollbar/scroll_bar.h
index 5b534d6c68cec9a0dcba5b74954fd3cbef434fd3..aa3800eb614cb579b262c0320d248a6e87d3a29e 100644
--- a/ui/views/controls/scrollbar/scroll_bar.h
+++ b/ui/views/controls/scrollbar/scroll_bar.h
@@ -86,6 +86,13 @@ class VIEWS_EXPORT ScrollBar : public View {
// is the height for a horizontal scrollbar.
virtual int GetLayoutSize() const = 0;
+ // Get the width or height for this scrollbar which overlaps with the content.
+ // Default is 0.
+ virtual int GetContentOverlapSize() const;
+
+ virtual void OnMouseEnteredScrollView(const ui::MouseEvent& event);
+ virtual void OnMouseExitedScrollView(const ui::MouseEvent& event);
+
protected:
// Create new scrollbar, either horizontal or vertical. These are protected
// since you need to be creating either a NativeScrollBar or a
« no previous file with comments | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/scrollbar/scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698