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

Unified Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/password_generation_popup_view_views.h
diff --git a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.h b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.h
index 28f07cc9f68b2bc83cd1d7d6a750ae4736a4624c..df9c7bcd4ae2c611d8ed940a6a4bb0ad85992911 100644
--- a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.h
+++ b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.h
@@ -7,6 +7,7 @@
#include "chrome/browser/ui/autofill/password_generation_popup_view.h"
#include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
+#include "ui/gfx/font_list.h"
#include "ui/views/controls/styled_label_listener.h"
namespace views {
@@ -29,10 +30,15 @@ class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
// PasswordGenerationPopupView implementation
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
+ virtual gfx::Size GetPreferredSizeOfPasswordView() OVERRIDE;
virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
virtual void PasswordSelectionUpdated() OVERRIDE;
+ virtual bool IsPointInPasswordBounds(const gfx::Point& point) OVERRIDE;
private:
+ // Helper class to do layout of the password portion of the popup.
+ class PasswordBox;
+
virtual ~PasswordGenerationPopupViewViews();
// Helper function to create |password_view_|.
@@ -47,9 +53,15 @@ class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
int event_flags) OVERRIDE;
// Sub views. Used to change bounds when updating. Weak references.
- views::View* password_view_;
+ PasswordBox* password_view_;
views::StyledLabel* help_label_;
+ // Fonts to use.
+ gfx::FontList font_list_;
+
+ // Size of the divider between the password and the help text.
+ gfx::Rect divider_bounds_;
+
// Controller for this view. Weak reference.
PasswordGenerationPopupController* controller_;

Powered by Google App Engine
This is Rietveld 408576698