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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BASE_SCROLL_BAR_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_
7 7
8 #include "ui/views/controls/button/custom_button.h" 8 #include "ui/views/controls/button/custom_button.h"
9 9
10 #include "ui/views/repeat_controller.h" 10 #include "ui/views/repeat_controller.h"
(...skipping 12 matching lines...) Expand all
23 // continues to fire the clicked action as the mouse button remains pressed 23 // continues to fire the clicked action as the mouse button remains pressed
24 // down on the button. 24 // down on the button.
25 // 25 //
26 /////////////////////////////////////////////////////////////////////////////// 26 ///////////////////////////////////////////////////////////////////////////////
27 class VIEWS_EXPORT BaseScrollBarButton : public CustomButton { 27 class VIEWS_EXPORT BaseScrollBarButton : public CustomButton {
28 public: 28 public:
29 explicit BaseScrollBarButton(ButtonListener* listener); 29 explicit BaseScrollBarButton(ButtonListener* listener);
30 virtual ~BaseScrollBarButton(); 30 virtual ~BaseScrollBarButton();
31 31
32 protected: 32 protected:
33 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 33 virtual bool OnMousePressed(const ui::MouseEvent& event) override;
34 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 34 virtual void OnMouseReleased(const ui::MouseEvent& event) override;
35 virtual void OnMouseCaptureLost() OVERRIDE; 35 virtual void OnMouseCaptureLost() override;
36 36
37 private: 37 private:
38 void RepeaterNotifyClick(); 38 void RepeaterNotifyClick();
39 39
40 // The repeat controller that we use to repeatedly click the button when the 40 // The repeat controller that we use to repeatedly click the button when the
41 // mouse button is down. 41 // mouse button is down.
42 RepeatController repeater_; 42 RepeatController repeater_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(BaseScrollBarButton); 44 DISALLOW_COPY_AND_ASSIGN(BaseScrollBarButton);
45 }; 45 };
46 46
47 } // namespace views 47 } // namespace views
48 48
49 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ 49 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar.h ('k') | ui/views/controls/scrollbar/base_scroll_bar_thumb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698