| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/gtk/options/passwords_page_gtk.h" | 5 #include "chrome/browser/gtk/options/passwords_page_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/gfx/gtk_util.h" | 9 #include "base/gfx/gtk_util.h" |
| 10 #include "chrome/common/gtk_tree.h" | 10 #include "chrome/common/gtk_tree.h" |
| 11 #include "chrome/common/gtk_util.h" | 11 #include "chrome/common/gtk_util.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/common/pref_service.h" | 13 #include "chrome/common/pref_service.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "grit/app_resources.h" | 15 #include "grit/app_resources.h" |
| 16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
| 17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Initial width of the first column. | 22 // Initial width of the first column. |
| 23 const int kSiteColumnInitialSize = 212; | 23 const int kSiteColumnInitialSize = 265; |
| 24 | 24 |
| 25 // Column ids for |password_list_store_|. | 25 // Column ids for |password_list_store_|. |
| 26 enum { | 26 enum { |
| 27 COL_SITE, | 27 COL_SITE, |
| 28 COL_USERNAME, | 28 COL_USERNAME, |
| 29 COL_COUNT, | 29 COL_COUNT, |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // anonymous namespace | 32 } // anonymous namespace |
| 33 | 33 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 PasswordStore* store = page_->GetPasswordStore(); | 315 PasswordStore* store = page_->GetPasswordStore(); |
| 316 pending_login_query_ = store->GetAutofillableLogins(this); | 316 pending_login_query_ = store->GetAutofillableLogins(this); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( | 319 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( |
| 320 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { | 320 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { |
| 321 DCHECK_EQ(pending_login_query_, handle); | 321 DCHECK_EQ(pending_login_query_, handle); |
| 322 pending_login_query_ = 0; | 322 pending_login_query_ = 0; |
| 323 page_->SetPasswordList(result); | 323 page_->SetPasswordList(result); |
| 324 } | 324 } |
| OLD | NEW |