OLD | NEW |
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_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ |
7 | 7 |
8 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" | 8 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" |
9 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" | 9 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" |
10 #include "ui/gfx/font_list.h" | 10 #include "ui/gfx/font_list.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // Helper function to create |password_view_|. | 44 // Helper function to create |password_view_|. |
45 void CreatePasswordView(); | 45 void CreatePasswordView(); |
46 | 46 |
47 // views:Views implementation. | 47 // views:Views implementation. |
48 void Layout() override; | 48 void Layout() override; |
49 void OnPaint(gfx::Canvas* canvas) override; | 49 void OnPaint(gfx::Canvas* canvas) override; |
50 void GetAccessibleState(ui::AXViewState* state) override; | 50 void GetAccessibleState(ui::AXViewState* state) override; |
51 | 51 |
52 // views::StyledLabelListener implementation | 52 // views::StyledLabelListener implementation |
53 void StyledLabelLinkClicked(const gfx::Range& range, | 53 void StyledLabelLinkClicked(views::StyledLabel* label, |
| 54 const gfx::Range& range, |
54 int event_flags) override; | 55 int event_flags) override; |
55 | 56 |
56 // Sub views. Used to change bounds when updating. Weak references. | 57 // Sub views. Used to change bounds when updating. Weak references. |
57 PasswordBox* password_view_; | 58 PasswordBox* password_view_; |
58 views::StyledLabel* help_label_; | 59 views::StyledLabel* help_label_; |
59 | 60 |
60 // Fonts to use. | 61 // Fonts to use. |
61 gfx::FontList font_list_; | 62 gfx::FontList font_list_; |
62 | 63 |
63 // Size of the divider between the password and the help text. | 64 // Size of the divider between the password and the help text. |
64 gfx::Rect divider_bounds_; | 65 gfx::Rect divider_bounds_; |
65 | 66 |
66 // Controller for this view. Weak reference. | 67 // Controller for this view. Weak reference. |
67 PasswordGenerationPopupController* controller_; | 68 PasswordGenerationPopupController* controller_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews); | 70 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace autofill | 73 } // namespace autofill |
73 | 74 |
74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS
_H_ | 75 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS
_H_ |
OLD | NEW |