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

Side by Side Diff: ui/views/controls/scrollbar/overlay_scroll_bar.h

Issue 2478273003: Use overlay scrollbars for the cros system menu. (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/animation/slide_animation.h" 9 #include "ui/gfx/animation/slide_animation.h"
10 #include "ui/views/controls/scrollbar/base_scroll_bar.h" 10 #include "ui/views/controls/scrollbar/base_scroll_bar.h"
(...skipping 11 matching lines...) Expand all
22 gfx::Rect GetTrackBounds() const override; 22 gfx::Rect GetTrackBounds() const override;
23 void OnGestureEvent(ui::GestureEvent* event) override; 23 void OnGestureEvent(ui::GestureEvent* event) override;
24 24
25 // ScrollBar overrides: 25 // ScrollBar overrides:
26 int GetLayoutSize() const override; 26 int GetLayoutSize() const override;
27 int GetContentOverlapSize() const override; 27 int GetContentOverlapSize() const override;
28 void OnMouseEnteredScrollView(const ui::MouseEvent& event) override; 28 void OnMouseEnteredScrollView(const ui::MouseEvent& event) override;
29 void OnMouseExitedScrollView(const ui::MouseEvent& event) override; 29 void OnMouseExitedScrollView(const ui::MouseEvent& event) override;
30 30
31 // View overrides: 31 // View overrides:
32 gfx::Size GetPreferredSize() const override;
33 void Layout() override; 32 void Layout() override;
34 void OnPaint(gfx::Canvas* canvas) override;
35 33
36 private: 34 private:
37 gfx::SlideAnimation animation_; 35 gfx::SlideAnimation animation_;
38 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar); 36 DISALLOW_COPY_AND_ASSIGN(OverlayScrollBar);
39 }; 37 };
40 38
41 } // namespace views 39 } // namespace views
42 40
43 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_ 41 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_OVERLAY_SCROLL_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar.h ('k') | ui/views/controls/scrollbar/overlay_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698