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

Unified Diff: chrome/browser/ui/cocoa/location_bar/button_decoration.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (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
Index: chrome/browser/ui/cocoa/location_bar/button_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/button_decoration.h b/chrome/browser/ui/cocoa/location_bar/button_decoration.h
index d0f5f291ff2e8112d5f41989aeb8cc0d27360ce0..266bc5d592da79e1837bd6e65434abb6921d8b10 100644
--- a/chrome/browser/ui/cocoa/location_bar/button_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/button_decoration.h
@@ -33,7 +33,7 @@ class ButtonDecoration : public LocationBarDecoration {
int pressed_icon_id,
CGFloat max_inner_padding);
- virtual ~ButtonDecoration();
+ ~ButtonDecoration() override;
void SetButtonState(ButtonState state);
ButtonState GetButtonState() const;
@@ -57,12 +57,12 @@ class ButtonDecoration : public LocationBarDecoration {
NSImage* GetIconImage() const;
// Implement |LocationBarDecoration|.
- virtual CGFloat GetWidthForSpace(CGFloat width) override;
- virtual void DrawInFrame(NSRect frame, NSView* control_view) override;
- virtual bool AcceptsMousePress() override;
- virtual bool IsDraggable() override;
- virtual bool OnMousePressed(NSRect frame, NSPoint location) override;
- virtual ButtonDecoration* AsButtonDecoration() override;
+ CGFloat GetWidthForSpace(CGFloat width) override;
+ void DrawInFrame(NSRect frame, NSView* control_view) override;
+ bool AcceptsMousePress() override;
+ bool IsDraggable() override;
+ bool OnMousePressed(NSRect frame, NSPoint location) override;
+ ButtonDecoration* AsButtonDecoration() override;
private:
ui::NinePartImageIds normal_image_ids_;

Powered by Google App Engine
This is Rietveld 408576698