Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / cocoa / passwords / manage_passwords_bubble_content_view_controller.h
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.
4
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_
7
8 #import <Cocoa/Cocoa.h>
9
10 // Cocoa UI constants.
11 namespace password_manager {
12 namespace mac {
13 namespace ui {
14 const CGFloat kDesiredBubbleWidth = 370;
15 const CGFloat kFramePadding = 16;
16 const CGFloat kRelatedControlHorizontalPadding = 2;
17 const CGFloat kUnrelatedControlVerticalPadding = 20;
18 }  // namespace ui
19 }  // namespace mac
20 }  // namespace password_manager
21
22 // Handles user interaction with the content view.
23 @protocol ManagePasswordsBubbleContentViewDelegate
24
25 // The user performed an action that should dismiss the bubble.
26 - (void)viewShouldDismiss;
27
28 @end
29
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;
36 @end
37
38 #endif  // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONTENT_VIEW_CONTROLLER_H_