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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/bubble_decoration.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 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 unified diff | Download patch | Annotate | Revision Log
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_BUBBLE_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/scoped_nsobject.h" 11 #include "base/memory/scoped_nsobject.h"
12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" 12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
13 13
14 // Draws an outlined rounded rect, with an optional image to the left 14 // Draws an outlined rounded rect, with an optional image to the left
15 // and an optional text label to the right. 15 // and an optional text label to the right.
16 16
17 class BubbleDecoration : public LocationBarDecoration { 17 class BubbleDecoration : public LocationBarDecoration {
18 public: 18 public:
19 // |font| will be used when drawing the label, and cannot be |nil|. 19 // |font| will be used when drawing the label, and cannot be |nil|.
20 BubbleDecoration(NSFont* font); 20 explicit BubbleDecoration(NSFont* font);
21 virtual ~BubbleDecoration(); 21 virtual ~BubbleDecoration();
22 22
23 // Setup the drawing parameters. 23 // Setup the drawing parameters.
24 NSImage* GetImage(); 24 NSImage* GetImage();
25 void SetImage(NSImage* image); 25 void SetImage(NSImage* image);
26 void SetLabel(NSString* label); 26 void SetLabel(NSString* label);
27 void SetColors(NSColor* border_color, 27 void SetColors(NSColor* border_color,
28 NSColor* background_color, 28 NSColor* background_color,
29 NSColor* text_color); 29 NSColor* text_color);
30 30
(...skipping 26 matching lines...) Expand all
57 57
58 // Colors used to draw the bubble, should be set by the subclass 58 // Colors used to draw the bubble, should be set by the subclass
59 // constructor. 59 // constructor.
60 scoped_nsobject<NSColor> background_color_; 60 scoped_nsobject<NSColor> background_color_;
61 scoped_nsobject<NSColor> border_color_; 61 scoped_nsobject<NSColor> border_color_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration); 63 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ 66 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698