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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_icon_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LOCATION_ICON_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_ICON_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_ICON_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_ICON_DECORATION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "chrome/browser/ui/cocoa/location_bar/image_decoration.h" 10 #include "chrome/browser/ui/cocoa/location_bar/image_decoration.h"
11 11
12 class LocationBarViewMac; 12 class LocationBarViewMac;
13 13
14 // LocationIconDecoration is used to display an icon to the left of 14 // LocationIconDecoration is used to display an icon to the left of
15 // the address. 15 // the address.
16 16
17 class LocationIconDecoration : public ImageDecoration { 17 class LocationIconDecoration : public ImageDecoration {
18 public: 18 public:
19 explicit LocationIconDecoration(LocationBarViewMac* owner); 19 explicit LocationIconDecoration(LocationBarViewMac* owner);
20 virtual ~LocationIconDecoration(); 20 ~LocationIconDecoration() override;
21 21
22 // Allow dragging the current URL. 22 // Allow dragging the current URL.
23 virtual bool IsDraggable() override; 23 bool IsDraggable() override;
24 virtual NSPasteboard* GetDragPasteboard() override; 24 NSPasteboard* GetDragPasteboard() override;
25 virtual NSImage* GetDragImage() override; 25 NSImage* GetDragImage() override;
26 virtual NSRect GetDragImageFrame(NSRect frame) override; 26 NSRect GetDragImageFrame(NSRect frame) override;
27 27
28 // Show the page info panel on click. 28 // Show the page info panel on click.
29 virtual bool OnMousePressed(NSRect frame, NSPoint location) override; 29 bool OnMousePressed(NSRect frame, NSPoint location) override;
30 virtual bool AcceptsMousePress() override; 30 bool AcceptsMousePress() override;
31 virtual NSString* GetToolTip() override; 31 NSString* GetToolTip() override;
32 virtual NSPoint GetBubblePointInFrame(NSRect frame) override; 32 NSPoint GetBubblePointInFrame(NSRect frame) override;
33 33
34 private: 34 private:
35 NSRect drag_frame_; 35 NSRect drag_frame_;
36 // The location bar view that owns us. 36 // The location bar view that owns us.
37 LocationBarViewMac* owner_; 37 LocationBarViewMac* owner_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(LocationIconDecoration); 39 DISALLOW_COPY_AND_ASSIGN(LocationIconDecoration);
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_ICON_DECORATION_H_ 42 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_ICON_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698