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

Unified Diff: chrome/browser/ui/cocoa/base_bubble_controller.mm

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/app/nibs/ActionBoxMenuItem.xib ('k') | chrome/browser/ui/cocoa/info_bubble_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/base_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/base_bubble_controller.mm b/chrome/browser/ui/cocoa/base_bubble_controller.mm
index 431c05587848681aee70bdaac8cbe0a14d81dfd5..acd7907bbca55b186d0fc7346b88a5765485a1d2 100644
--- a/chrome/browser/ui/cocoa/base_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/base_bubble_controller.mm
@@ -253,13 +253,21 @@
case info_bubble::kAlignEdgeToAnchorEdge:
// If the arrow is to the right then move the origin so that the right
// edge aligns with the anchor. If the arrow is to the left then there's
- // nothing to do becaues the left edge is already aligned with the left
+ // nothing to do because the left edge is already aligned with the left
// edge of the anchor.
if ([bubble_ arrowLocation] == info_bubble::kTopRight) {
origin.x -= NSWidth([window frame]);
}
break;
+ case info_bubble::kAlignRightEdgeToAnchorEdge:
+ origin.x -= NSWidth([window frame]);
+ break;
+
+ case info_bubble::kAlignLeftEdgeToAnchorEdge:
+ // Nothing to do.
+ break;
+
default:
NOTREACHED();
}
« no previous file with comments | « chrome/app/nibs/ActionBoxMenuItem.xib ('k') | chrome/browser/ui/cocoa/info_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698