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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_controller.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: fix 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Range; 12 class Range;
13 } 13 }
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 class PasswordGenerationPopupController : public AutofillPopupViewDelegate { 17 class PasswordGenerationPopupController : public AutofillPopupViewDelegate {
18 public: 18 public:
19 // Space above and below help section. 19 // Space above and below help section.
20 static const int kHelpVerticalPadding = 15; 20 static const int kHelpVerticalPadding = 15;
21 21
22 // Spacing between the border of the popup and any text. 22 // Spacing between the border of the popup and any text.
23 static const int kHorizontalPadding = 10; 23 static const int kHorizontalPadding = 10;
24 24
25 // Desired height of the password section.
26 static const int kPopupPasswordSectionHeight = 62;
27
25 // Called by the view when the saved passwords link is clicked. 28 // Called by the view when the saved passwords link is clicked.
26 virtual void OnSavedPasswordsLinkClicked() = 0; 29 virtual void OnSavedPasswordsLinkClicked() = 0;
27 30
28 // Return the minimum allowable width for the popup. 31 // Return the minimum allowable width for the popup.
29 virtual int GetMinimumWidth() = 0; 32 virtual int GetMinimumWidth() = 0;
30 33
31 // Accessors 34 // Accessors
32 virtual bool display_password() const = 0; 35 virtual bool display_password() const = 0;
33 virtual bool password_selected() const = 0; 36 virtual bool password_selected() const = 0;
34 virtual base::string16 password() const = 0; 37 virtual base::string16 password() const = 0;
35 38
36 // Translated strings 39 // Translated strings
37 virtual base::string16 SuggestedText() = 0; 40 virtual base::string16 SuggestedText() = 0;
38 virtual const base::string16& HelpText() = 0; 41 virtual const base::string16& HelpText() = 0;
39 virtual const gfx::Range& HelpTextLinkRange() = 0; 42 virtual const gfx::Range& HelpTextLinkRange() = 0;
40 43
41 protected: 44 protected:
42 virtual ~PasswordGenerationPopupController() {} 45 virtual ~PasswordGenerationPopupController() {}
43 }; 46 };
44 47
45 } // namespace autofill 48 } // namespace autofill
46 49
47 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_ 50 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698