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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/search_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h" 10 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h"
11 11
12 class LocationBarViewMac; 12 class LocationBarViewMac;
13 13
14 // |SearchButtonDecoration| adds a search/go button to the right of the omnibox. 14 // |SearchButtonDecoration| adds a search/go button to the right of the omnibox.
15 15
16 class SearchButtonDecoration : public ButtonDecoration { 16 class SearchButtonDecoration : public ButtonDecoration {
17 public: 17 public:
18 explicit SearchButtonDecoration(LocationBarViewMac* owner); 18 explicit SearchButtonDecoration(LocationBarViewMac* owner);
19 virtual ~SearchButtonDecoration(); 19 ~SearchButtonDecoration() override;
20 20
21 // Implement |LocationBarDecoration|. 21 // Implement |LocationBarDecoration|.
22 virtual CGFloat GetWidthForSpace(CGFloat width) override; 22 CGFloat GetWidthForSpace(CGFloat width) override;
23 virtual void DrawInFrame(NSRect frame, NSView* control_view) override; 23 void DrawInFrame(NSRect frame, NSView* control_view) override;
24 virtual bool OnMousePressed(NSRect frame, NSPoint location) override; 24 bool OnMousePressed(NSRect frame, NSPoint location) override;
25 25
26 private: 26 private:
27 // The control view that owns this. Weak. 27 // The control view that owns this. Weak.
28 LocationBarViewMac* owner_; 28 LocationBarViewMac* owner_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(SearchButtonDecoration); 30 DISALLOW_COPY_AND_ASSIGN(SearchButtonDecoration);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEARCH_BUTTON_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698