Chromium Code Reviews| 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..d430bf18843dfd09dd03185dac53fd879294cb46 100644 |
| --- a/chrome/browser/ui/cocoa/base_bubble_controller.mm |
| +++ b/chrome/browser/ui/cocoa/base_bubble_controller.mm |
| @@ -253,13 +253,22 @@ |
| 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: |
| + // Account for the 1 pixel borders. |
|
Scott Hess - ex-Googler
2012/10/15 06:06:35
Is this a TODO, or is it descriptive of what the f
beaudoin
2012/10/15 16:42:57
Leftover. (Now taken care of upstream, similarly t
|
| + origin.x -= NSWidth([window frame]); |
| + break; |
| + |
| + case info_bubble::kAlignLeftEdgeToAnchorEdge: |
| + // Nothing to do. |
| + break; |
| + |
| default: |
| NOTREACHED(); |
| } |