| 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..cb13eead6647391b52909cf39fc2ee1adbc6dda7 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
|
| @@ -29,8 +29,10 @@ class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
|
| // PasswordGenerationPopupView implementation
|
| virtual void Show() OVERRIDE;
|
| virtual void Hide() OVERRIDE;
|
| + virtual int GetHeight(int width) OVERRIDE;
|
| virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
|
| virtual void PasswordSelectionUpdated() OVERRIDE;
|
| + virtual bool IsPointInPasswordBounds(const gfx::Point& point) OVERRIDE;
|
|
|
| private:
|
| virtual ~PasswordGenerationPopupViewViews();
|
| @@ -38,6 +40,9 @@ class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
|
| // Helper function to create |password_view_|.
|
| void CreatePasswordView();
|
|
|
| + // Helper function to set bounds of all elements for a given width.
|
| + void SetBoundsForWidth(int width);
|
| +
|
| // views:Views implementation.
|
| virtual void Layout() OVERRIDE;
|
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
| @@ -50,6 +55,9 @@ class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
|
| views::View* password_view_;
|
| views::StyledLabel* help_label_;
|
|
|
| + // Size of the divider between the password and the help text.
|
| + gfx::Rect divider_bounds_;
|
| +
|
| // Controller for this view. Weak reference.
|
| PasswordGenerationPopupController* controller_;
|
|
|
|
|