Index: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm |
=================================================================== |
--- trunk/src/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm (revision 241090) |
+++ trunk/src/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm (working copy) |
@@ -5,6 +5,7 @@ |
#import "chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h" |
#import "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
+#import "chrome/browser/ui/cocoa/info_bubble_view.h" |
#import "chrome/browser/ui/cocoa/info_bubble_window.h" |
#include "skia/ext/skia_utils_mac.h" |
@@ -25,14 +26,12 @@ |
message:(NSString*)message { |
return [self initWithParentWindow:parentWindow |
message:message |
- inset:NSMakeSize(kLabelInset, kLabelInset) |
- arrowLocation:info_bubble::kTopCenter]; |
+ inset:NSMakeSize(kLabelInset, kLabelInset)]; |
} |
- (id)initWithParentWindow:(NSWindow*)parentWindow |
message:(NSString*)message |
- inset:(NSSize)inset |
- arrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation { |
+ inset:(NSSize)inset { |
base::scoped_nsobject<InfoBubbleWindow> window( |
[[InfoBubbleWindow alloc] initWithContentRect:NSMakeRect(0, 0, 200, 100) |
styleMask:NSBorderlessWindowMask |
@@ -44,7 +43,7 @@ |
anchoredAt:NSZeroPoint])) { |
inset_ = inset; |
[self setShouldOpenAsKeyWindow:NO]; |
- [[self bubble] setArrowLocation:arrowLocation]; |
+ [[self bubble] setArrowLocation:info_bubble::kTopCenter]; |
[[self bubble] setAlignment:info_bubble::kAlignArrowToAnchor]; |
label_.reset([[NSTextField alloc] init]); |