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

Side by Side Diff: chrome/browser/ui/cocoa/info_bubble_view.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 11
12 namespace info_bubble { 12 namespace info_bubble {
13 13
14 // These values are in view coordinates. 14 // These values are in view coordinates.
15 const CGFloat kBubbleArrowHeight = 8.0; 15 const CGFloat kBubbleArrowHeight = 8.0;
16 const CGFloat kBubbleArrowWidth = 15.0; 16 const CGFloat kBubbleArrowWidth = 15.0;
17 const CGFloat kBubbleCornerRadius = 2.0; 17 const CGFloat kBubbleCornerRadius = 2.0;
18 const CGFloat kBubbleArrowXOffset = kBubbleArrowWidth + kBubbleCornerRadius; 18 const CGFloat kBubbleArrowXOffset = kBubbleArrowWidth + kBubbleCornerRadius;
19 19
20 // Constants that define where the bubble will have rounded corners. 20 // Constants that define where the bubble will have rounded corners.
(...skipping 22 matching lines...) Expand all
43 43
44 } // namespace info_bubble 44 } // namespace info_bubble
45 45
46 // Content view for a bubble with an arrow showing arbitrary content. 46 // Content view for a bubble with an arrow showing arbitrary content.
47 // This is where nonrectangular drawing happens. 47 // This is where nonrectangular drawing happens.
48 @interface InfoBubbleView : NSView { 48 @interface InfoBubbleView : NSView {
49 @private 49 @private
50 info_bubble::BubbleArrowLocation arrowLocation_; 50 info_bubble::BubbleArrowLocation arrowLocation_;
51 info_bubble::BubbleAlignment alignment_; 51 info_bubble::BubbleAlignment alignment_;
52 info_bubble::CornerFlags cornerFlags_; 52 info_bubble::CornerFlags cornerFlags_;
53 scoped_nsobject<NSColor> backgroundColor_; 53 base::scoped_nsobject<NSColor> backgroundColor_;
54 } 54 }
55 55
56 @property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation; 56 @property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation;
57 @property(assign, nonatomic) info_bubble::BubbleAlignment alignment; 57 @property(assign, nonatomic) info_bubble::BubbleAlignment alignment;
58 @property(assign, nonatomic) info_bubble::CornerFlags cornerFlags; 58 @property(assign, nonatomic) info_bubble::CornerFlags cornerFlags;
59 59
60 // Returns the point location in view coordinates of the tip of the arrow. 60 // Returns the point location in view coordinates of the tip of the arrow.
61 - (NSPoint)arrowTip; 61 - (NSPoint)arrowTip;
62 62
63 // Gets and sets the bubble's background color. 63 // Gets and sets the bubble's background color.
64 - (NSColor*)backgroundColor; 64 - (NSColor*)backgroundColor;
65 - (void)setBackgroundColor:(NSColor*)backgroundColor; 65 - (void)setBackgroundColor:(NSColor*)backgroundColor;
66 66
67 @end 67 @end
68 68
69 #endif // CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_ 69 #endif // CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698