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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
12 12
13 // Bubble controller for field validation error bubbles. 13 // Bubble controller for field validation error bubbles.
14 @interface AutofillBubbleController : BaseBubbleController { 14 @interface AutofillBubbleController : BaseBubbleController {
15 @private
15 base::scoped_nsobject<NSTextField> label_; 16 base::scoped_nsobject<NSTextField> label_;
17 NSSize inset_; // Amount the label is inset from the window.
16 } 18 }
17 19
18 // Creates an error bubble with the given |message|. You need to call 20 // Creates an error bubble with the given |message|. You need to call
19 // -showWindow: to make the bubble visible. It will autorelease itself when the 21 // -showWindow: to make the bubble visible. It will autorelease itself when the
20 // user dismisses the bubble. 22 // user dismisses the bubble.
21 - (id)initWithParentWindow:(NSWindow*)parentWindow 23 - (id)initWithParentWindow:(NSWindow*)parentWindow
22 message:(NSString*)message; 24 message:(NSString*)message;
23 25
26 // Designated initializer. Creates a bubble with given |message| and insets the
27 // text content by |inset|.
28 - (id)initWithParentWindow:(NSWindow*)parentWindow
29 message:(NSString*)message
30 inset:(NSSize)inset;
31
24 // Maximum width that the bubble will occupy, regardless of message size. 32 // Maximum width that the bubble will occupy, regardless of message size.
25 - (CGFloat)maxWidth; 33 - (CGFloat)maxWidth;
26 34
27 @end 35 @end
28 36
29 37
30 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_ 38 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_
OLDNEW
« 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