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

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

Issue 677563004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_KENNEDY_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_
7 7
8 #include "ui/views/controls/scrollbar/base_scroll_bar.h" 8 #include "ui/views/controls/scrollbar/base_scroll_bar.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 // The scrollbar of kennedy style. Transparent track and grey rectangle 12 // The scrollbar of kennedy style. Transparent track and grey rectangle
13 // thumb. Right now it doesn't have the way to share the background, 13 // thumb. Right now it doesn't have the way to share the background,
14 // so it will accept the background color instead. 14 // so it will accept the background color instead.
15 class VIEWS_EXPORT KennedyScrollBar : public BaseScrollBar { 15 class VIEWS_EXPORT KennedyScrollBar : public BaseScrollBar {
16 public: 16 public:
17 explicit KennedyScrollBar(bool horizontal); 17 explicit KennedyScrollBar(bool horizontal);
18 virtual ~KennedyScrollBar(); 18 ~KennedyScrollBar() override;
19 19
20 protected: 20 protected:
21 // BaseScrollBar overrides: 21 // BaseScrollBar overrides:
22 virtual gfx::Rect GetTrackBounds() const override; 22 gfx::Rect GetTrackBounds() const override;
23 23
24 // ScrollBar overrides: 24 // ScrollBar overrides:
25 virtual int GetLayoutSize() const override; 25 int GetLayoutSize() const override;
26 26
27 // View overrides: 27 // View overrides:
28 virtual gfx::Size GetPreferredSize() const override; 28 gfx::Size GetPreferredSize() const override;
29 virtual void Layout() override; 29 void Layout() override;
30 virtual void OnPaint(gfx::Canvas* canvas) override; 30 void OnPaint(gfx::Canvas* canvas) override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(KennedyScrollBar); 33 DISALLOW_COPY_AND_ASSIGN(KennedyScrollBar);
34 }; 34 };
35 35
36 } // namespace views 36 } // namespace views
37 37
38 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_ 38 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_KENNEDY_SCROLL_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar_thumb.h ('k') | ui/views/controls/scrollbar/kennedy_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698