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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_popup_base_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: Remove some dead code, add TODO. 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
Ilya Sherman 2014/05/09 21:51:28 Ultra nit: No need for "(c)". Please change this
Patrick Dubroy 2014/05/12 14:13:39 Done.
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_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "ui/base/cocoa/base_view.h"
11
12 namespace autofill {
13 class AutofillPopupController;
Ilya Sherman 2014/05/09 21:51:28 nit: Not needed?
Patrick Dubroy 2014/05/12 14:13:39 Done.
14 class AutofillPopupViewDelegate;
15 } // namespace autofill
Ilya Sherman 2014/05/09 21:51:28 nit: No need for the trailing "// namespace" comme
Patrick Dubroy 2014/05/12 14:13:39 Done.
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;
Ilya Sherman 2014/05/09 21:51:28 nit: Alphabetize?
Patrick Dubroy 2014/05/12 14:13:39 Done.
29
30 // Informs the view that its controller has been (or will imminently be)
31 // destroyed.
32 - (void)controllerDestroyed;
Ilya Sherman 2014/05/09 21:51:28 The base view has no concept of a controller. Per
Patrick Dubroy 2014/05/12 14:13:39 Actually, I don't think we need this at all.
33
34 - (id)initWithAutofillPopupViewDelegate:
35 (autofill::AutofillPopupViewDelegate*)delegate frame:(NSRect)frame;
Ilya Sherman 2014/05/09 21:51:28 nit: I'd write this as - (id)initWithDelegate:(au
Patrick Dubroy 2014/05/12 14:13:39 Done.
36
37 // Draw the popup's background and border.
Ilya Sherman 2014/05/09 21:51:28 nit: De-indent.
Patrick Dubroy 2014/05/12 14:13:39 Done.
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
49 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698