OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORDS_PASSWORD_UI_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
9 | 10 |
10 namespace autofill { | 11 namespace autofill { |
11 struct PasswordForm; | 12 struct PasswordForm; |
12 } | 13 } |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 // An interface for a passwords UI View. A UI view is responsible for | 17 // An interface for a passwords UI View. A UI view is responsible for |
17 // displaying passwords in the UI and routing UI commands to the | 18 // displaying passwords in the UI and routing UI commands to the |
18 // PasswordManagerPresenter. | 19 // PasswordManagerPresenter. |
(...skipping 13 matching lines...) Expand all Loading... |
32 // |password_list| the list of saved password entries. | 33 // |password_list| the list of saved password entries. |
33 // |show_passwords| true if the passwords should be shown in the UI. | 34 // |show_passwords| true if the passwords should be shown in the UI. |
34 virtual void SetPasswordList( | 35 virtual void SetPasswordList( |
35 const ScopedVector<autofill::PasswordForm>& password_list, | 36 const ScopedVector<autofill::PasswordForm>& password_list, |
36 bool show_passwords) = 0; | 37 bool show_passwords) = 0; |
37 | 38 |
38 // Updates the list of password exceptions in the UI. | 39 // Updates the list of password exceptions in the UI. |
39 // |password_exception_list| The list of saved password exceptions. | 40 // |password_exception_list| The list of saved password exceptions. |
40 virtual void SetPasswordExceptionList( | 41 virtual void SetPasswordExceptionList( |
41 const ScopedVector<autofill::PasswordForm>& password_exception_list) = 0; | 42 const ScopedVector<autofill::PasswordForm>& password_exception_list) = 0; |
| 43 #if !defined(OS_ANDROID) |
| 44 // Returns the top level NativeWindow for the view. |
| 45 virtual gfx::NativeWindow GetNativeWindow() = 0; |
| 46 #endif |
42 }; | 47 }; |
43 | 48 |
44 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 49 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
OLD | NEW |