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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_view.h

Issue 147533005: [Password Generation] Update UI to match final mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replace_password_generation_ui
Patch Set: Created 6 years, 10 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
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_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_
7 7
8 namespace autofill { 8 namespace autofill {
9 9
10 class PasswordGenerationPopupController; 10 class PasswordGenerationPopupController;
11 11
12 // Interface for creating and controlling a platform dependent view. 12 // Interface for creating and controlling a platform dependent view.
13 class PasswordGenerationPopupView { 13 class PasswordGenerationPopupView {
14 public: 14 public:
15 // This is the amount of vertical whitespace that is left above and below the
16 // password when it is highlighted.
17 static const int kPasswordVerticalInset = 7;
18
19 // Display the popup.
15 virtual void Show() = 0; 20 virtual void Show() = 0;
16 21
17 // This will cause the popup to be deleted. 22 // This will cause the popup to be deleted.
18 virtual void Hide() = 0; 23 virtual void Hide() = 0;
19 24
20 // Updates layout information from the controller. 25 // Updates layout information from the controller.
21 virtual void UpdateBoundsAndRedrawPopup() = 0; 26 virtual void UpdateBoundsAndRedrawPopup() = 0;
22 27
28 // Called when the password selection state has changed.
29 virtual void PasswordSelectionUpdated() = 0;
30
23 // Note that PasswordGenerationPopupView owns itself, and will only be deleted 31 // Note that PasswordGenerationPopupView owns itself, and will only be deleted
24 // when Hide() is called. 32 // when Hide() is called.
25 static PasswordGenerationPopupView* Create( 33 static PasswordGenerationPopupView* Create(
26 PasswordGenerationPopupController* controller); 34 PasswordGenerationPopupController* controller);
27 }; 35 };
28 36
29 } // namespace autofill 37 } // namespace autofill
30 38
31 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_ 39 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698