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

Side by Side Diff: ui/views/examples/button_example.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
« no previous file with comments | « ui/views/examples/bubble_example.cc ('k') | ui/views/examples/checkbox_example.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXAMPLES_BUTTON_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/examples/example_base.h" 10 #include "ui/views/examples/example_base.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 class ImageButton; 14 class ImageButton;
15 class LabelButton; 15 class LabelButton;
16 16
17 namespace examples { 17 namespace examples {
18 18
19 // ButtonExample simply counts the number of clicks. 19 // ButtonExample simply counts the number of clicks.
20 class VIEWS_EXAMPLES_EXPORT ButtonExample : public ExampleBase, 20 class VIEWS_EXAMPLES_EXPORT ButtonExample : public ExampleBase,
21 public ButtonListener { 21 public ButtonListener {
22 public: 22 public:
23 ButtonExample(); 23 ButtonExample();
24 virtual ~ButtonExample(); 24 virtual ~ButtonExample();
25 25
26 // ExampleBase: 26 // ExampleBase:
27 virtual void CreateExampleView(View* container) OVERRIDE; 27 virtual void CreateExampleView(View* container) override;
28 28
29 private: 29 private:
30 void LabelButtonPressed(const ui::Event& event); 30 void LabelButtonPressed(const ui::Event& event);
31 31
32 // ButtonListener: 32 // ButtonListener:
33 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; 33 virtual void ButtonPressed(Button* sender, const ui::Event& event) override;
34 34
35 // Example buttons. 35 // Example buttons.
36 LabelButton* label_button_; 36 LabelButton* label_button_;
37 ImageButton* image_button_; 37 ImageButton* image_button_;
38 38
39 const gfx::ImageSkia* icon_; 39 const gfx::ImageSkia* icon_;
40 40
41 // The number of times the buttons are pressed. 41 // The number of times the buttons are pressed.
42 int count_; 42 int count_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(ButtonExample); 44 DISALLOW_COPY_AND_ASSIGN(ButtonExample);
45 }; 45 };
46 46
47 } // namespace examples 47 } // namespace examples
48 } // namespace views 48 } // namespace views
49 49
50 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 50 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/examples/bubble_example.cc ('k') | ui/views/examples/checkbox_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698