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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h

Issue 84343002: [rAC, OSX] Use a bubble for tooltips. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h b/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h
index ebdbfd138da00e9aa51a1541bc19f0fe77a01f48..273288243752178135d1c774ec427b3ca750d6c9 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h
@@ -12,7 +12,9 @@
// Bubble controller for field validation error bubbles.
@interface AutofillBubbleController : BaseBubbleController {
+ @private
base::scoped_nsobject<NSTextField> label_;
+ NSSize inset_; // Amount the label is inset from the window.
}
// Creates an error bubble with the given |message|. You need to call
@@ -21,6 +23,12 @@
- (id)initWithParentWindow:(NSWindow*)parentWindow
message:(NSString*)message;
+// Designated initializer. Creates a bubble with given |message| and insets the
+// text content by |inset|.
+- (id)initWithParentWindow:(NSWindow*)parentWindow
+ message:(NSString*)message
+ inset:(NSSize)inset;
+
// Maximum width that the bubble will occupy, regardless of message size.
- (CGFloat)maxWidth;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698