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

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

Issue 402077: Adds popups to browser actions, completing the feature.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_COCOA_INFO_BUBBLE_VIEW_H_
7
5 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
6 9
10 extern const CGFloat kBubbleArrowHeight;
11 extern const CGFloat kBubbleArrowWidth;
12 extern const CGFloat kBubbleArrowXOffset;
13 extern const CGFloat kBubbleCornerRadius;
14
7 enum BubbleArrowLocation { 15 enum BubbleArrowLocation {
8 kTopLeft, 16 kTopLeft,
9 kTopRight, 17 kTopRight,
10 }; 18 };
11 19
20 enum InfoBubbleType {
21 kGradientInfoBubble,
22 kWhiteInfoBubble
23 };
24
12 // Content view for a bubble with an arrow showing arbitrary content. 25 // Content view for a bubble with an arrow showing arbitrary content.
13 // This is where nonrectangular drawing happens. 26 // This is where nonrectangular drawing happens.
14 @interface InfoBubbleView : NSView { 27 @interface InfoBubbleView : NSView {
15 @private 28 @private
16 BubbleArrowLocation arrowLocation_; 29 BubbleArrowLocation arrowLocation_;
30
31 // The type simply is used to determine what sort of background it should
32 // draw.
33 InfoBubbleType bubbleType_;
17 } 34 }
18 35
19 @property (assign, nonatomic) BubbleArrowLocation arrowLocation; 36 @property (assign, nonatomic) BubbleArrowLocation arrowLocation;
37 @property (assign, nonatomic) InfoBubbleType bubbleType;
20 38
21 @end 39 @end
40
41 #endif // CHROME_BROWSER_COCOA_INFO_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm ('k') | chrome/browser/cocoa/info_bubble_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698