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

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: 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 - (id)initWithAutofillPopupViewDelegate:(autofill::AutofillPopupViewDelegate*)de legate
23 frame:(NSRect)frame;
24
25 // Draw the popup's background and border.
26 - (void)drawBackgroundAndBorderInRect:(NSRect)dirtyRect;
27
28 // Draws a thin separator in the popup UI.
29 - (void)drawSeparatorWithBounds:(NSRect)bounds;
30 @end
31
16 // Draws the native Autofill popup view on Mac. 32 // Draws the native Autofill popup view on Mac.
17 @interface AutofillPopupViewCocoa : BaseView { 33 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa {
18 @private 34 @private
19 // The cross-platform controller for this view. 35 // The cross-platform controller for this view.
20 __weak autofill::AutofillPopupController* controller_; 36 __weak autofill::AutofillPopupController* controller_;
21 } 37 }
22 38
23 // Designated initializer. 39 // Designated initializer.
24 - (id)initWithController:(autofill::AutofillPopupController*)controller 40 - (id)initWithController:(autofill::AutofillPopupController*)controller
25 frame:(NSRect)frame; 41 frame:(NSRect)frame;
26 42
27 // Informs the view that its controller has been (or will imminently be) 43 // Informs the view that its controller has been (or will imminently be)
28 // destroyed. 44 // destroyed.
29 - (void)controllerDestroyed; 45 - (void)controllerDestroyed;
30 46
31 @end 47 @end
32 48
33 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_ 49 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_CONTENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698