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

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

Issue 3007025: Merge 54188 - [Mac] First pass at final sizing of toolbar items.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ 6 #define CHROME_BROWSER_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"
(...skipping 28 matching lines...) Expand all
39 39
40 // Helper to return where the image is drawn, for subclasses to drag 40 // Helper to return where the image is drawn, for subclasses to drag
41 // from. |frame| is the decoration's frame in the containing cell. 41 // from. |frame| is the decoration's frame in the containing cell.
42 NSRect GetImageRectInFrame(NSRect frame); 42 NSRect GetImageRectInFrame(NSRect frame);
43 43
44 private: 44 private:
45 friend class SelectedKeywordDecorationTest; 45 friend class SelectedKeywordDecorationTest;
46 FRIEND_TEST_ALL_PREFIXES(SelectedKeywordDecorationTest, 46 FRIEND_TEST_ALL_PREFIXES(SelectedKeywordDecorationTest,
47 UsesPartialKeywordIfNarrow); 47 UsesPartialKeywordIfNarrow);
48 48
49 // Contains font attribute for drawing |label_|. 49 // Contains font and color attribute for drawing |label_|.
50 scoped_nsobject<NSDictionary> attributes_; 50 scoped_nsobject<NSDictionary> attributes_;
51 51
52 // Image drawn in the left side of the bubble. 52 // Image drawn in the left side of the bubble.
53 scoped_nsobject<NSImage> image_; 53 scoped_nsobject<NSImage> image_;
54 54
55 // Label to draw to right of image. Can be |nil|. 55 // Label to draw to right of image. Can be |nil|.
56 scoped_nsobject<NSString> label_; 56 scoped_nsobject<NSString> label_;
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 scoped_nsobject<NSColor> text_color_;
63 62
64 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration); 63 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration);
65 }; 64 };
66 65
67 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ 66 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698