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

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

Issue 1162393003: Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile in test Created 5 years, 7 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
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 b3b918a0b406acf54d0245e18a0defdf60690b79..b4538b39a1117af77f9f1cdf21411557e2e479d7 100644
--- a/chrome/browser/ui/cocoa/info_bubble_view.h
+++ b/chrome/browser/ui/cocoa/info_bubble_view.h
@@ -8,6 +8,7 @@
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
+#include "ui/views/bubble/bubble_border.h"
namespace info_bubble {
@@ -24,13 +25,6 @@ enum CornerFlags {
kRoundedAllCorners = kRoundedTopCorners | kRoundedBottomCorners,
};
-enum BubbleArrowLocation {
- kTopLeft,
- kTopCenter,
- kTopRight,
- kNoArrow,
-};
-
enum BubbleAlignment {
// The tip of the arrow points to the anchor point.
kAlignArrowToAnchor,
@@ -48,13 +42,13 @@ enum BubbleAlignment {
// This is where nonrectangular drawing happens.
@interface InfoBubbleView : NSView {
@private
- info_bubble::BubbleArrowLocation arrowLocation_;
+ views::BubbleBorder::Arrow arrowLocation_;
info_bubble::BubbleAlignment alignment_;
info_bubble::CornerFlags cornerFlags_;
base::scoped_nsobject<NSColor> backgroundColor_;
}
-@property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation;
+@property(assign, nonatomic) views::BubbleBorder::Arrow arrowLocation;
@property(assign, nonatomic) info_bubble::BubbleAlignment alignment;
@property(assign, nonatomic) info_bubble::CornerFlags cornerFlags;
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.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