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

Unified Diff: ash/system/audio/volume_view.cc

Issue 683473005: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « ash/system/audio/volume_view.h ('k') | ash/system/bluetooth/tray_bluetooth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/audio/volume_view.cc
diff --git a/ash/system/audio/volume_view.cc b/ash/system/audio/volume_view.cc
index 821fb11533dabfa19c80b9ff5a546c1ae7aaa39f..b046b3586c437df2dabfcdfeba4ac5cdfcd82204 100644
--- a/ash/system/audio/volume_view.cc
+++ b/ash/system/audio/volume_view.cc
@@ -50,7 +50,7 @@ class VolumeButton : public views::ToggleImageButton {
Update();
}
- virtual ~VolumeButton() {}
+ ~VolumeButton() override {}
void Update() {
float level =
@@ -72,7 +72,7 @@ class VolumeButton : public views::ToggleImageButton {
private:
// Overridden from views::View.
- virtual gfx::Size GetPreferredSize() const override {
+ gfx::Size GetPreferredSize() const override {
gfx::Size size = views::ToggleImageButton::GetPreferredSize();
size.set_height(kTrayPopupItemHeight);
return size;
@@ -99,7 +99,7 @@ class VolumeSlider : public views::Slider {
IDS_ASH_STATUS_TRAY_VOLUME));
Update();
}
- virtual ~VolumeSlider() {}
+ ~VolumeSlider() override {}
void Update() {
UpdateState(!audio_delegate_->IsOutputAudioMuted());
@@ -115,15 +115,15 @@ class VolumeSlider : public views::Slider {
class BarSeparator : public views::View {
public:
BarSeparator() {}
- virtual ~BarSeparator() {}
+ ~BarSeparator() override {}
// Overriden from views::View.
- virtual gfx::Size GetPreferredSize() const override {
+ gfx::Size GetPreferredSize() const override {
return gfx::Size(kBarSeparatorWidth, kBarSeparatorHeight);
}
private:
- virtual void OnPaint(gfx::Canvas* canvas) override {
+ void OnPaint(gfx::Canvas* canvas) override {
canvas->FillRect(gfx::Rect(width() / 2, 0, 1, height()),
kButtonStrokeColor);
}
« no previous file with comments | « ash/system/audio/volume_view.h ('k') | ash/system/bluetooth/tray_bluetooth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698