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

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

Issue 487193003: Update Mac password generation autofill popup to match latest mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rewrite layout Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 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 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_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h"
10 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" 11 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h"
11 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" 12 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h"
12 13
13 namespace autofill { 14 namespace autofill {
14 class AutofillPopupController; 15 class AutofillPopupController;
15 } // namespace autofill 16 } // namespace autofill
16 17
17 @class HyperlinkTextView; 18 @class HyperlinkTextView;
18 19
19 // Draws the native password generation popup view on Mac. 20 // Draws the native password generation popup view on Mac.
20 @interface PasswordGenerationPopupViewCocoa 21 @interface PasswordGenerationPopupViewCocoa
21 : AutofillPopupBaseViewCocoa <NSTextViewDelegate> { 22 : AutofillPopupBaseViewCocoa <NSTextViewDelegate> {
22 @private 23 @private
23 // The cross-platform controller for this view. 24 // The cross-platform controller for this view.
24 __weak autofill::PasswordGenerationPopupController* controller_; 25 __weak autofill::PasswordGenerationPopupController* controller_;
25 26
26 __weak NSTextField* passwordField_; 27 base::scoped_nsobject<NSView> passwordSection_;
27 __weak NSTextField* passwordSubtextField_; 28 base::scoped_nsobject<NSTextField> passwordField_;
28 __weak HyperlinkTextView* helpTextView_; 29 base::scoped_nsobject<NSTextField> passwordTitleField_;
30 base::scoped_nsobject<NSImageView> keyIcon_;
31 base::scoped_nsobject<NSBox> divider_;
32 base::scoped_nsobject<NSView> helpSection_;
33 base::scoped_nsobject<HyperlinkTextView> helpTextView_;
29 } 34 }
30 35
31 // Designated initializer. 36 // Designated initializer.
32 - (id)initWithController: 37 - (id)initWithController:
33 (autofill::PasswordGenerationPopupController*)controller 38 (autofill::PasswordGenerationPopupController*)controller
34 frame:(NSRect)frame; 39 frame:(NSRect)frame;
35 40
41 // Determines whether |point| falls inside the password section of the popup.
groby-ooo-7-16 2014/08/21 04:40:06 Do you need this function? You're not consuming it
dconnelly 2014/08/21 10:44:25 It's being consumed by PasswordGenerationPopupView
42 - (BOOL)isPointInPasswordBounds:(NSPoint)point;
43
36 // Informs the view that its controller has been (or will imminently be) 44 // Informs the view that its controller has been (or will imminently be)
37 // destroyed. 45 // destroyed.
38 - (void)controllerDestroyed; 46 - (void)controllerDestroyed;
39 47
48 // The preferred size for the popup.
49 - (NSSize)preferredSize;
50
40 @end 51 @end
41 52
42 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA _H_ 53 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698