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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm

Issue 116973002: Revert 241085 "[rAc] [OSX] Set tooltip bubble arrow's anchor poi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: 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]);

Powered by Google App Engine
This is Rietveld 408576698