OLD | NEW |
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/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/macros.h" |
12 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" | 13 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" |
13 #import "ui/base/cocoa/appkit_utils.h" | 14 #import "ui/base/cocoa/appkit_utils.h" |
14 | 15 |
15 // Draws an outlined rounded rect, with an optional image to the left | 16 // Draws an outlined rounded rect, with an optional image to the left |
16 // and an optional text label to the right. | 17 // and an optional text label to the right. |
17 | 18 |
18 class BubbleDecoration : public LocationBarDecoration { | 19 class BubbleDecoration : public LocationBarDecoration { |
19 public: | 20 public: |
20 BubbleDecoration(); | 21 BubbleDecoration(); |
21 ~BubbleDecoration() override; | 22 ~BubbleDecoration() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Label to draw to right of image. Can be |nil|. | 55 // Label to draw to right of image. Can be |nil|. |
55 base::scoped_nsobject<NSString> label_; | 56 base::scoped_nsobject<NSString> label_; |
56 | 57 |
57 // Contains attribute for drawing |label_|. | 58 // Contains attribute for drawing |label_|. |
58 base::scoped_nsobject<NSMutableDictionary> attributes_; | 59 base::scoped_nsobject<NSMutableDictionary> attributes_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration); | 61 DISALLOW_COPY_AND_ASSIGN(BubbleDecoration); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ | 64 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUBBLE_DECORATION_H_ |
OLD | NEW |