Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / autofill / password_generation_popup_controller.h
blobe7c18b07dcc5879879ef00cc60a7089182d9f39c
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_
8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
11 namespace gfx {
12 class Range;
15 namespace autofill {
17 class PasswordGenerationPopupController : public AutofillPopupViewDelegate {
18 public:
19 // Space above and below help section.
20 static const int kHelpVerticalPadding = 15;
22 // Spacing between the border of the popup and any text.
23 static const int kHorizontalPadding = 10;
25 // Desired height of the password section.
26 static const int kPopupPasswordSectionHeight = 62;
28 // Called by the view when the password was accepted.
29 virtual void PasswordAccepted() = 0;
31 // Called by the view when the saved passwords link is clicked.
32 virtual void OnSavedPasswordsLinkClicked() = 0;
34 // Return the minimum allowable width for the popup.
35 virtual int GetMinimumWidth() = 0;
37 // Accessors
38 virtual bool display_password() const = 0;
39 virtual bool password_selected() const = 0;
40 virtual base::string16 password() const = 0;
42 // Translated strings
43 virtual base::string16 SuggestedText() = 0;
44 virtual const base::string16& HelpText() = 0;
45 virtual const gfx::Range& HelpTextLinkRange() = 0;
47 protected:
48 ~PasswordGenerationPopupController() override {}
51 } // namespace autofill
53 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_H_