OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "chrome/browser/views/options/cookies_view.h" | 7 #include "chrome/browser/views/options/cookies_view.h" |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time_format.h" | 10 #include "base/time_format.h" |
11 #include "chrome/app/locales/locale_settings.h" | 11 #include "chrome/app/locales/locale_settings.h" |
12 #include "chrome/app/theme/theme_resources.h" | 12 #include "grit/theme_resources.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/views/standard_layout.h" | 14 #include "chrome/browser/views/standard_layout.h" |
15 #include "chrome/common/gfx/color_utils.h" | 15 #include "chrome/common/gfx/color_utils.h" |
16 #include "chrome/common/l10n_util.h" | 16 #include "chrome/common/l10n_util.h" |
17 #include "chrome/common/resource_bundle.h" | 17 #include "chrome/common/resource_bundle.h" |
18 #include "chrome/common/win_util.h" | 18 #include "chrome/common/win_util.h" |
19 #include "chrome/views/border.h" | 19 #include "chrome/views/border.h" |
20 #include "chrome/views/grid_layout.h" | 20 #include "chrome/views/grid_layout.h" |
21 #include "chrome/views/label.h" | 21 #include "chrome/views/label.h" |
22 #include "chrome/views/text_field.h" | 22 #include "chrome/views/text_field.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 void CookiesView::ResetSearchQuery() { | 784 void CookiesView::ResetSearchQuery() { |
785 search_field_->SetText(EmptyWString()); | 785 search_field_->SetText(EmptyWString()); |
786 UpdateSearchResults(); | 786 UpdateSearchResults(); |
787 } | 787 } |
788 | 788 |
789 void CookiesView::UpdateForEmptyState() { | 789 void CookiesView::UpdateForEmptyState() { |
790 info_view_->ClearCookieDisplay(); | 790 info_view_->ClearCookieDisplay(); |
791 remove_button_->SetEnabled(false); | 791 remove_button_->SetEnabled(false); |
792 remove_all_button_->SetEnabled(false); | 792 remove_all_button_->SetEnabled(false); |
793 } | 793 } |
OLD | NEW |