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

Unified Diff: chrome/browser/ui/cocoa/info_bubble_view.h

Issue 11103042: New custom styling for action box menu on Os X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered shess final round of comments. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/base_bubble_controller.mm ('k') | chrome/browser/ui/cocoa/info_bubble_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/info_bubble_view.h
diff --git a/chrome/browser/ui/cocoa/info_bubble_view.h b/chrome/browser/ui/cocoa/info_bubble_view.h
index 82b5bc9af4a21a0833acd4fd83c7aab8e9b73b4d..b7c9a761dd2ffd65bca65b657ca9b6a8e56d735f 100644
--- a/chrome/browser/ui/cocoa/info_bubble_view.h
+++ b/chrome/browser/ui/cocoa/info_bubble_view.h
@@ -7,6 +7,8 @@
#import <Cocoa/Cocoa.h>
+#include "base/memory/scoped_nsobject.h"
+
namespace info_bubble {
// These values are in view coordinates.
@@ -33,6 +35,10 @@ enum BubbleAlignment {
kAlignArrowToAnchor,
// The edge nearest to the arrow is lined up with the anchor point.
kAlignEdgeToAnchorEdge,
+ // Align the right edge to the anchor point.
+ kAlignRightEdgeToAnchorEdge,
+ // Align the left edge to the anchor point.
+ kAlignLeftEdgeToAnchorEdge,
};
} // namespace info_bubble
@@ -44,6 +50,7 @@ enum BubbleAlignment {
info_bubble::BubbleArrowLocation arrowLocation_;
info_bubble::BubbleAlignment alignment_;
info_bubble::CornerFlags cornerFlags_;
+ scoped_nsobject<NSColor> backgroundColor_;
}
@property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation;
@@ -53,6 +60,10 @@ enum BubbleAlignment {
// Returns the point location in view coordinates of the tip of the arrow.
- (NSPoint)arrowTip;
+// Gets and sets the bubble's background color.
+- (NSColor*)backgroundColor;
+- (void)setBackgroundColor:(NSColor*)backgroundColor;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
« no previous file with comments | « chrome/browser/ui/cocoa/base_bubble_controller.mm ('k') | chrome/browser/ui/cocoa/info_bubble_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698