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

Unified Diff: chrome/browser/chromeos/ui/idle_app_name_notification_view.cc

Issue 854053002: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
diff --git a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
index bfcc7bcd7173cb891ed464b0d764915530daa441..06dd15490a089664b3264666726ce85896c73188 100644
--- a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
+++ b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
@@ -132,7 +132,7 @@ class IdleAppNameNotificationDelegateView
&IdleAppNameNotificationDelegateView::RemoveMessage);
}
- virtual ~IdleAppNameNotificationDelegateView() {
+ ~IdleAppNameNotificationDelegateView() override {
// The widget is already closing, but the other cleanup items need to be
// performed.
widget_closed_ = true;
@@ -168,7 +168,7 @@ class IdleAppNameNotificationDelegateView
layer->SetBounds(rect);
}
- virtual void OnPaint(gfx::Canvas* canvas) override {
+ void OnPaint(gfx::Canvas* canvas) override {
SkPaint paint;
paint.setStyle(SkPaint::kFill_Style);
paint.setColor(kWindowBackgroundColor);
@@ -176,15 +176,13 @@ class IdleAppNameNotificationDelegateView
views::WidgetDelegateView::OnPaint(canvas);
}
- virtual void GetAccessibleState(ui::AXViewState* state) override {
+ void GetAccessibleState(ui::AXViewState* state) override {
state->name = spoken_text_;
state->role = ui::AX_ROLE_ALERT;
}
// ImplicitAnimationObserver overrides
- virtual void OnImplicitAnimationsCompleted() override {
- Close();
- }
+ void OnImplicitAnimationsCompleted() override { Close(); }
private:
// Adds the label to the view, using |text| with a |font| and a |text_color|.
« no previous file with comments | « chrome/browser/chromeos/ui/focus_ring_layer.h ('k') | chrome/browser/chromeos/ui/idle_app_name_notification_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698