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

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

Issue 342833002: [Password Generation] Update Aura UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Coments Created 6 years, 5 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_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 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 9
10 namespace gfx {
11 class Point;
12 class Size;
13 }
14
10 namespace autofill { 15 namespace autofill {
11 16
12 class PasswordGenerationPopupController; 17 class PasswordGenerationPopupController;
13 18
14 // Interface for creating and controlling a platform dependent view. 19 // Interface for creating and controlling a platform dependent view.
15 class PasswordGenerationPopupView { 20 class PasswordGenerationPopupView {
16 public: 21 public:
17 // This is the amount of vertical whitespace that is left above and below the 22 // Number of pixels added in between lines of the help section.
18 // password when it is highlighted. 23 static const int kHelpSectionAdditionalSpacing = 3;
19 static const int kPasswordVerticalInset = 7;
20 24
21 // Display the popup. 25 // Display the popup.
22 virtual void Show() = 0; 26 virtual void Show() = 0;
23 27
24 // This will cause the popup to be deleted. 28 // This will cause the popup to be deleted.
25 virtual void Hide() = 0; 29 virtual void Hide() = 0;
26 30
31 // Get desired size of the popup.
32 virtual gfx::Size GetPreferredSizeOfPasswordView() = 0;
33
27 // Updates layout information from the controller. 34 // Updates layout information from the controller.
28 virtual void UpdateBoundsAndRedrawPopup() = 0; 35 virtual void UpdateBoundsAndRedrawPopup() = 0;
29 36
30 // Called when the password selection state has changed. 37 // Called when the password selection state has changed.
31 virtual void PasswordSelectionUpdated() = 0; 38 virtual void PasswordSelectionUpdated() = 0;
32 39
40 virtual bool IsPointInPasswordBounds(const gfx::Point& point) = 0;
41
33 // Note that PasswordGenerationPopupView owns itself, and will only be deleted 42 // Note that PasswordGenerationPopupView owns itself, and will only be deleted
34 // when Hide() is called. 43 // when Hide() is called.
35 static PasswordGenerationPopupView* Create( 44 static PasswordGenerationPopupView* Create(
36 PasswordGenerationPopupController* controller); 45 PasswordGenerationPopupController* controller);
37 46
38 static const SkColor kExplanatoryTextBackgroundColor; 47 static const SkColor kExplanatoryTextBackgroundColor;
39 static const SkColor kExplanatoryTextColor; 48 static const SkColor kExplanatoryTextColor;
40 static const SkColor kDividerColor; 49 static const SkColor kDividerColor;
41 static const SkColor kLinkColor;
42 }; 50 };
43 51
44 } // namespace autofill 52 } // namespace autofill
45 53
46 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_ 54 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698