| 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 18 matching lines...) Expand all Loading... |
| 29 PasswordStore* GetPasswordStore(); | 29 PasswordStore* GetPasswordStore(); |
| 30 | 30 |
| 31 // Sets the password list contents to the given data. We take ownership of | 31 // Sets the password list contents to the given data. We take ownership of |
| 32 // the PasswordForms in the vector. | 32 // the PasswordForms in the vector. |
| 33 void SetPasswordList(const std::vector<webkit_glue::PasswordForm*>& result); | 33 void SetPasswordList(const std::vector<webkit_glue::PasswordForm*>& result); |
| 34 | 34 |
| 35 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveButtonClicked); | 35 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveButtonClicked); |
| 36 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveAllButtonClicked); | 36 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnRemoveAllButtonClicked); |
| 37 CHROMEGTK_CALLBACK_1(PasswordsPageGtk, void, OnRemoveAllConfirmResponse, int); | 37 CHROMEGTK_CALLBACK_1(PasswordsPageGtk, void, OnRemoveAllConfirmResponse, int); |
| 38 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonClicked); | 38 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonClicked); |
| 39 CHROMEGTK_CALLBACK_0(PasswordsPageGtk, void, OnShowPasswordButtonRealized); |
| 39 | 40 |
| 40 CHROMEG_CALLBACK_0(PasswordsPageGtk, void, OnPasswordSelectionChanged, | 41 CHROMEG_CALLBACK_0(PasswordsPageGtk, void, OnPasswordSelectionChanged, |
| 41 GtkTreeSelection*); | 42 GtkTreeSelection*); |
| 42 | 43 |
| 43 // Sorting functions. | 44 // Sorting functions. |
| 44 static gint CompareSite(GtkTreeModel* model, | 45 static gint CompareSite(GtkTreeModel* model, |
| 45 GtkTreeIter* a, GtkTreeIter* b, | 46 GtkTreeIter* a, GtkTreeIter* b, |
| 46 gpointer window); | 47 gpointer window); |
| 47 static gint CompareUsername(GtkTreeModel* model, | 48 static gint CompareUsername(GtkTreeModel* model, |
| 48 GtkTreeIter* a, GtkTreeIter* b, | 49 GtkTreeIter* a, GtkTreeIter* b, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // The parent GtkHBox widget and GtkWindow window. | 90 // The parent GtkHBox widget and GtkWindow window. |
| 90 GtkWidget* page_; | 91 GtkWidget* page_; |
| 91 | 92 |
| 92 Profile* profile_; | 93 Profile* profile_; |
| 93 std::vector<webkit_glue::PasswordForm*> password_list_; | 94 std::vector<webkit_glue::PasswordForm*> password_list_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(PasswordsPageGtk); | 96 DISALLOW_COPY_AND_ASSIGN(PasswordsPageGtk); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ | 99 #endif // CHROME_BROWSER_GTK_OPTIONS_PASSWORDS_PAGE_GTK_H_ |
| OLD | NEW |