1 // Copyright 2014 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_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTENT_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTENT_VIEW_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 // Cocoa UI constants.
11 namespace password_manager {
14 const CGFloat kDesiredBubbleWidth = 370;
15 const CGFloat kFramePadding = 16;
16 const CGFloat kRelatedControlHorizontalPadding = 2;
17 const CGFloat kUnrelatedControlVerticalPadding = 20;
20 } // namespace password_manager
22 // Handles user interaction with the content view.
23 @protocol ManagePasswordsBubbleContentViewDelegate
25 // The user performed an action that should dismiss the bubble.
26 - (void)viewShouldDismiss;
30 // Base class for a state of the password management bubble.
31 @interface ManagePasswordsBubbleContentViewController : NSViewController
32 - (NSButton*)addButton:(NSString*)title target:(id)target action:(SEL)action;
33 - (NSTextField*)addTitleLabel:(NSString*)title;
34 - (NSTextField*)addLabel:(NSString*)title;
35 - (void)bubbleWillDisappear;
38 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTENT_VIEW_CONTROLLER_H_