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

Unified Diff: ui/views/controls/button/checkbox.h

Issue 681753004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/button/button.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/checkbox.h
diff --git a/ui/views/controls/button/checkbox.h b/ui/views/controls/button/checkbox.h
index 8f473fa279d5523a258f98c5e456b4bee2cd9eab..ebe73801264809ec539f63984d564420f0bd993e 100644
--- a/ui/views/controls/button/checkbox.h
+++ b/ui/views/controls/button/checkbox.h
@@ -20,7 +20,7 @@ class VIEWS_EXPORT Checkbox : public LabelButton {
static const char kViewClassName[];
explicit Checkbox(const base::string16& label);
- virtual ~Checkbox();
+ ~Checkbox() override;
// Sets a listener for this checkbox. Checkboxes aren't required to have them
// since their state can be read independently of them being toggled.
@@ -32,12 +32,12 @@ class VIEWS_EXPORT Checkbox : public LabelButton {
protected:
// Overridden from LabelButton:
- virtual void Layout() override;
- virtual const char* GetClassName() const override;
- virtual void GetAccessibleState(ui::AXViewState* state) override;
- virtual void OnFocus() override;
- virtual void OnBlur() override;
- virtual const gfx::ImageSkia& GetImage(ButtonState for_state) override;
+ void Layout() override;
+ const char* GetClassName() const override;
+ void GetAccessibleState(ui::AXViewState* state) override;
+ void OnFocus() override;
+ void OnBlur() override;
+ const gfx::ImageSkia& GetImage(ButtonState for_state) override;
// Set the image shown for each button state depending on whether it is
// [checked] or [focused].
@@ -48,11 +48,10 @@ class VIEWS_EXPORT Checkbox : public LabelButton {
private:
// Overridden from Button:
- virtual void NotifyClick(const ui::Event& event) override;
+ void NotifyClick(const ui::Event& event) override;
- virtual ui::NativeTheme::Part GetThemePart() const override;
- virtual void GetExtraParams(
- ui::NativeTheme::ExtraParams* params) const override;
+ ui::NativeTheme::Part GetThemePart() const override;
+ void GetExtraParams(ui::NativeTheme::ExtraParams* params) const override;
// True if the checkbox is checked.
bool checked_;
« no previous file with comments | « ui/views/controls/button/button.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698