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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h

Issue 267183002: Password manager: Implement password generation UI for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More implementation Created 6 years, 7 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POPUP_CONTENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "ui/base/cocoa/base_view.h" 10 #import "ui/base/cocoa/base_view.h"
11 11
12 namespace autofill { 12 namespace autofill {
13 class AutofillPopupController; 13 class AutofillPopupController;
14 class AutofillPopupViewDelegate;
14 } // namespace autofill 15 } // namespace autofill
15 16
17 @interface AutofillPopupBaseViewCocoa : BaseView {
18 @private
19 __weak autofill::AutofillPopupViewDelegate* delegate_;
20 }
21
22 - (NSColor*)backgroundColor;
23 - (NSColor*)borderColor;
24 - (NSColor*)separatorColor;
25 - (NSColor*)highlightColor;
26 - (NSColor*)nameColor;
27 - (NSColor*)warningColor;
28 - (NSColor*)subtextColor;
29
30 // Informs the view that its controller has been (or will imminently be)
31 // destroyed.
32 - (void)controllerDestroyed;
33
34 - (id)initWithAutofillPopupViewDelegate:
35 (autofill::AutofillPopupViewDelegate*)delegate frame:(NSRect)frame;
36
37 // Draw the popup's background and border.
38 - (void)drawBackgroundAndBorderInRect:(NSRect)dirtyRect;
39
40 // Draws a thin separator in the popup UI.
41 - (void)drawSeparatorWithBounds:(NSRect)bounds;
42
43 // Messages from AutofillPopupViewBridge:
44 - (void)updateBoundsAndRedrawPopup;
45 - (void)showPopup;
46 - (void)hidePopup;
47 @end
48
16 // Draws the native Autofill popup view on Mac. 49 // Draws the native Autofill popup view on Mac.
17 @interface AutofillPopupViewCocoa : BaseView { 50 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa {
18 @private 51 @private
19 // The cross-platform controller for this view. 52 // The cross-platform controller for this view.
20 __weak autofill::AutofillPopupController* controller_; 53 __weak autofill::AutofillPopupController* controller_;
21 } 54 }
22 55
23 // Designated initializer. 56 // Designated initializer.
24 - (id)initWithController:(autofill::AutofillPopupController*)controller 57 - (id)initWithController:(autofill::AutofillPopupController*)controller
25 frame:(NSRect)frame; 58 frame:(NSRect)frame;
26 59
27 // Informs the view that its controller has been (or will imminently be) 60 - (void)invalidateRow:(size_t)row;
28 // destroyed.
29 - (void)controllerDestroyed;
30 61
31 @end 62 @end
32 63
33 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_ 64 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698