OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/options/passwords_page_gtk.h" | 5 #include "chrome/browser/ui/gtk/options/passwords_page_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/gtk/gtk_tree.h" | 13 #include "chrome/browser/ui/gtk/gtk_tree.h" |
14 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
15 #include "chrome/common/notification_details.h" | 15 #include "chrome/common/notification_details.h" |
16 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "gfx/gtk_util.h" | |
20 #include "grit/app_resources.h" | 19 #include "grit/app_resources.h" |
21 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
23 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
24 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
| 24 #include "ui/gfx/gtk_util.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Initial width of the first column. | 28 // Initial width of the first column. |
29 const int kSiteColumnInitialSize = 265; | 29 const int kSiteColumnInitialSize = 265; |
30 | 30 |
31 // Column ids for |password_list_store_|. | 31 // Column ids for |password_list_store_|. |
32 enum { | 32 enum { |
33 COL_SITE, | 33 COL_SITE, |
34 COL_USERNAME, | 34 COL_USERNAME, |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 else | 358 else |
359 LOG(ERROR) << "No password store! Cannot display passwords."; | 359 LOG(ERROR) << "No password store! Cannot display passwords."; |
360 } | 360 } |
361 | 361 |
362 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( | 362 void PasswordsPageGtk::PasswordListPopulater::OnPasswordStoreRequestDone( |
363 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { | 363 int handle, const std::vector<webkit_glue::PasswordForm*>& result) { |
364 DCHECK_EQ(pending_login_query_, handle); | 364 DCHECK_EQ(pending_login_query_, handle); |
365 pending_login_query_ = 0; | 365 pending_login_query_ = 0; |
366 page_->SetPasswordList(result); | 366 page_->SetPasswordList(result); |
367 } | 367 } |
OLD | NEW |