OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ |
6 #define CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 PasswordStore* GetPasswordStore(); | 31 PasswordStore* GetPasswordStore(); |
32 | 32 |
33 // Sets the password list contents to the given data. We take ownership of | 33 // Sets the password list contents to the given data. We take ownership of |
34 // the PasswordForms in the vector. | 34 // the PasswordForms in the vector. |
35 void SetPasswordList(const std::vector<webkit_glue::PasswordForm*>& result); | 35 void SetPasswordList(const std::vector<webkit_glue::PasswordForm*>& result); |
36 | 36 |
37 // Helper that hides the password. | 37 // Helper that hides the password. |
38 void HidePassword(); | 38 void HidePassword(); |
39 | 39 |
40 // NotificationObserver implementation. | 40 // NotificationObserver implementation. |
41 void Observe(NotificationType type, | 41 virtual void Observe(NotificationType type, |
42 const NotificationSource& source, | 42 const NotificationSource& source, |
43 const NotificationDetails& details); | 43 const NotificationDetails& details); |
44 | 44 |
45 // Handles changes to the observed preferences and updates the UI. | 45 // Handles changes to the observed preferences and updates the UI. |
46 void OnPrefChanged(const std::string& pref_name); | 46 void OnPrefChanged(const std::string& pref_name); |
47 | 47 |
48 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveButtonClicked); | 48 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveButtonClicked); |
49 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveAllButtonClicked); | 49 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveAllButtonClicked); |
50 CHROMEGTK_CALLBACK_1(PasswordsPageGtk, void, OnRemoveAllConfirmResponse, int); | 50 CHROMEGTK_CALLBACK_1(PasswordsPageGtk, void, OnRemoveAllConfirmResponse, int); |
51 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonClicked); | 51 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonClicked); |
52 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonRealized); | 52 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonRealized); |
53 | 53 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 GtkWidget* page_; | 104 GtkWidget* page_; |
105 | 105 |
106 Profile* profile_; | 106 Profile* profile_; |
107 BooleanPrefMember allow_show_passwords_; | 107 BooleanPrefMember allow_show_passwords_; |
108 std::vector<webkit_glue::PasswordForm*> password_list_; | 108 std::vector<webkit_glue::PasswordForm*> password_list_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(PasswordsPageGtk); | 110 DISALLOW_COPY_AND_ASSIGN(PasswordsPageGtk); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ | 113 #endif // CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ |
OLD | NEW |