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

Side by Side Diff: ui/views/controls/button/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
« no previous file with comments | « ui/views/controls/button/blue_button.h ('k') | ui/views/controls/button/checkbox.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) 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_BUTTON_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
7 7
8 #include "ui/native_theme/native_theme.h" 8 #include "ui/native_theme/native_theme.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 void SetTooltipText(const base::string16& tooltip_text); 51 void SetTooltipText(const base::string16& tooltip_text);
52 52
53 int tag() const { return tag_; } 53 int tag() const { return tag_; }
54 void set_tag(int tag) { tag_ = tag; } 54 void set_tag(int tag) { tag_ = tag; }
55 55
56 void SetAccessibleName(const base::string16& name); 56 void SetAccessibleName(const base::string16& name);
57 57
58 // Overridden from View: 58 // Overridden from View:
59 virtual bool GetTooltipText(const gfx::Point& p, 59 virtual bool GetTooltipText(const gfx::Point& p,
60 base::string16* tooltip) const OVERRIDE; 60 base::string16* tooltip) const override;
61 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 61 virtual void GetAccessibleState(ui::AXViewState* state) override;
62 62
63 protected: 63 protected:
64 // Construct the Button with a Listener. The listener can be NULL. This can be 64 // Construct the Button with a Listener. The listener can be NULL. This can be
65 // true of buttons that don't have a listener - e.g. menubuttons where there's 65 // true of buttons that don't have a listener - e.g. menubuttons where there's
66 // no default action and checkboxes. 66 // no default action and checkboxes.
67 explicit Button(ButtonListener* listener); 67 explicit Button(ButtonListener* listener);
68 68
69 // Cause the button to notify the listener that a click occurred. 69 // Cause the button to notify the listener that a click occurred.
70 virtual void NotifyClick(const ui::Event& event); 70 virtual void NotifyClick(const ui::Event& event);
71 71
(...skipping 10 matching lines...) Expand all
82 // The id tag associated with this button. Used to disambiguate buttons in 82 // The id tag associated with this button. Used to disambiguate buttons in
83 // the ButtonListener implementation. 83 // the ButtonListener implementation.
84 int tag_; 84 int tag_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(Button); 86 DISALLOW_COPY_AND_ASSIGN(Button);
87 }; 87 };
88 88
89 } // namespace views 89 } // namespace views
90 90
91 #endif // UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_ 91 #endif // UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/blue_button.h ('k') | ui/views/controls/button/checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698