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 <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 "app/gfx/chrome_canvas.h" | 9 #include "app/gfx/chrome_canvas.h" |
10 #include "app/gfx/color_utils.h" | 10 #include "app/gfx/color_utils.h" |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/time_format.h" | 14 #include "base/time_format.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
16 #include "chrome/common/win_util.h" | |
17 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
18 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
19 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
20 #include "net/base/cookie_monster.h" | 19 #include "net/base/cookie_monster.h" |
21 #include "net/url_request/url_request_context.h" | 20 #include "net/url_request/url_request_context.h" |
22 #include "views/border.h" | 21 #include "views/border.h" |
23 #include "views/grid_layout.h" | 22 #include "views/grid_layout.h" |
24 #include "views/controls/label.h" | 23 #include "views/controls/label.h" |
25 #include "views/controls/button/native_button.h" | 24 #include "views/controls/button/native_button.h" |
26 #include "views/controls/text_field.h" | 25 #include "views/controls/text_field.h" |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 void CookiesView::ResetSearchQuery() { | 783 void CookiesView::ResetSearchQuery() { |
785 search_field_->SetText(EmptyWString()); | 784 search_field_->SetText(EmptyWString()); |
786 UpdateSearchResults(); | 785 UpdateSearchResults(); |
787 } | 786 } |
788 | 787 |
789 void CookiesView::UpdateForEmptyState() { | 788 void CookiesView::UpdateForEmptyState() { |
790 info_view_->ClearCookieDisplay(); | 789 info_view_->ClearCookieDisplay(); |
791 remove_button_->SetEnabled(false); | 790 remove_button_->SetEnabled(false); |
792 remove_all_button_->SetEnabled(false); | 791 remove_all_button_->SetEnabled(false); |
793 } | 792 } |
OLD | NEW |