Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_popup_base_view_cocoa.h
blob24212726c4ef07faa813e7cb3dc45b333a4877ea
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_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_
8 #import <Cocoa/Cocoa.h>
10 #import "ui/base/cocoa/base_view.h"
12 namespace autofill {
13 class AutofillPopupViewDelegate;
16 @interface AutofillPopupBaseViewCocoa : BaseView {
17 @private
18 __weak autofill::AutofillPopupViewDelegate* delegate_;
21 - (NSColor*)backgroundColor;
22 - (NSColor*)borderColor;
23 - (NSColor*)highlightColor;
24 - (NSColor*)nameColor;
25 - (NSColor*)separatorColor;
26 - (NSColor*)subtextColor;
27 - (NSColor*)warningColor;
29 - (id)initWithDelegate:(autofill::AutofillPopupViewDelegate*)delegate
30 frame:(NSRect)frame;
32 // Informs the view that its delegate has been (or will imminently be)
33 // destroyed.
34 - (void)delegateDestroyed;
36 // Draw the popup's background and border.
37 - (void)drawBackgroundAndBorder;
39 // Draws a thin separator in the popup UI.
40 - (void)drawSeparatorWithBounds:(NSRect)bounds;
42 // Messages from AutofillPopupViewBridge:
43 - (void)updateBoundsAndRedrawPopup;
44 - (void)showPopup;
45 - (void)hidePopup;
46 @end
48 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_