| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // |password_value| the value of saved password entry at |index|. | 38 // |password_value| the value of saved password entry at |index|. |
| 39 virtual void ShowPassword(size_t index, | 39 virtual void ShowPassword(size_t index, |
| 40 const std::string& origin_url, | 40 const std::string& origin_url, |
| 41 const std::string& username, | 41 const std::string& username, |
| 42 const base::string16& password_value) = 0; | 42 const base::string16& password_value) = 0; |
| 43 | 43 |
| 44 // Updates the list of passwords in the UI. | 44 // Updates the list of passwords in the UI. |
| 45 // |password_list| the list of saved password entries. | 45 // |password_list| the list of saved password entries. |
| 46 // |show_passwords| true if the passwords should be shown in the UI. | 46 // |show_passwords| true if the passwords should be shown in the UI. |
| 47 virtual void SetPasswordList( | 47 virtual void SetPasswordList( |
| 48 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list, | 48 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list) = 0; |
| 49 bool show_passwords) = 0; | |
| 50 | 49 |
| 51 // Updates the list of password exceptions in the UI. | 50 // Updates the list of password exceptions in the UI. |
| 52 // |password_exception_list| The list of saved password exceptions. | 51 // |password_exception_list| The list of saved password exceptions. |
| 53 virtual void SetPasswordExceptionList( | 52 virtual void SetPasswordExceptionList( |
| 54 const std::vector<scoped_ptr<autofill::PasswordForm>>& | 53 const std::vector<scoped_ptr<autofill::PasswordForm>>& |
| 55 password_exception_list) = 0; | 54 password_exception_list) = 0; |
| 56 #if !defined(OS_ANDROID) | 55 #if !defined(OS_ANDROID) |
| 57 // Returns the top level NativeWindow for the view. | 56 // Returns the top level NativeWindow for the view. |
| 58 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 57 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
| 59 #endif | 58 #endif |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 61 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
| OLD | NEW |