Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_bubble_controller.h
blob02bbee13a5c47990d044fcc3c72a1b718882d494
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
12 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
14 // Bubble controller for field validation error bubbles.
15 @interface AutofillBubbleController : BaseBubbleController {
16 @private
17 base::scoped_nsobject<NSTextField> label_;
18 NSSize inset_; // Amount the label is inset from the window.
21 // Creates an error bubble with the given |message|. You need to call
22 // -showWindow: to make the bubble visible. It will autorelease itself when the
23 // user dismisses the bubble.
24 - (id)initWithParentWindow:(NSWindow*)parentWindow
25 message:(NSString*)message;
27 // Designated initializer. Creates a bubble with given |message| and insets the
28 // text content by |inset|, with the arrow positioned at |arrowLocation|.
29 - (id)initWithParentWindow:(NSWindow*)parentWindow
30 message:(NSString*)message
31 inset:(NSSize)inset
32 arrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation;
34 // Maximum width that the bubble will occupy, regardless of message size.
35 - (CGFloat)maxWidth;
37 // Update the current text with |message|.
38 - (void)setMessage:(NSString*)message;
40 @end
43 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_BUBBLE_CONTROLLER_H_