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_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" | 12 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" |
13 #include "chrome/browser/ui/autofill/popup_controller_common.h" | 13 #include "chrome/browser/ui/autofill/popup_controller_common.h" |
14 #include "components/autofill/core/common/password_form.h" | 14 #include "components/autofill/core/common/password_form.h" |
15 #include "ui/gfx/font.h" | 15 #include "ui/gfx/font_list.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 #include "ui/gfx/rect_f.h" | 18 #include "ui/gfx/rect_f.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 struct NativeWebKeyboardEvent; | 21 struct NativeWebKeyboardEvent; |
22 class WebContents; | 22 class WebContents; |
23 } | 23 } |
24 | 24 |
25 class PasswordManager; | 25 class PasswordManager; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 PasswordGenerator* generator_; | 123 PasswordGenerator* generator_; |
124 PasswordManager* password_manager_; | 124 PasswordManager* password_manager_; |
125 PasswordGenerationPopupObserver* observer_; | 125 PasswordGenerationPopupObserver* observer_; |
126 | 126 |
127 // Contains common popup functionality. | 127 // Contains common popup functionality. |
128 PopupControllerCommon controller_common_; | 128 PopupControllerCommon controller_common_; |
129 | 129 |
130 // Handle to the popup. May be NULL if popup isn't showing. | 130 // Handle to the popup. May be NULL if popup isn't showing. |
131 PasswordGenerationPopupView* view_; | 131 PasswordGenerationPopupView* view_; |
132 | 132 |
133 // Font used in the popup. | 133 // Font list used in the popup. |
134 gfx::Font font_; | 134 gfx::FontList font_list_; |
135 | 135 |
136 base::string16 current_password_; | 136 base::string16 current_password_; |
137 bool password_selected_; | 137 bool password_selected_; |
138 | 138 |
139 // Bounds for all the elements of the popup. | 139 // Bounds for all the elements of the popup. |
140 gfx::Rect popup_bounds_; | 140 gfx::Rect popup_bounds_; |
141 gfx::Rect password_bounds_; | 141 gfx::Rect password_bounds_; |
142 gfx::Rect divider_bounds_; | 142 gfx::Rect divider_bounds_; |
143 gfx::Rect help_bounds_; | 143 gfx::Rect help_bounds_; |
144 | 144 |
145 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; | 145 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); | 147 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace autofill | 150 } // namespace autofill |
151 | 151 |
152 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ | 152 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ |
OLD | NEW |