| 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/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/time_format.h" | 13 #include "base/time_format.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/views/standard_layout.h" | |
| 16 #include "chrome/common/gfx/color_utils.h" | 15 #include "chrome/common/gfx/color_utils.h" |
| 17 #include "chrome/common/win_util.h" | 16 #include "chrome/common/win_util.h" |
| 18 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 19 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
| 20 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
| 21 #include "net/base/cookie_monster.h" | 20 #include "net/base/cookie_monster.h" |
| 22 #include "net/url_request/url_request_context.h" | 21 #include "net/url_request/url_request_context.h" |
| 23 #include "views/border.h" | 22 #include "views/border.h" |
| 24 #include "views/grid_layout.h" | 23 #include "views/grid_layout.h" |
| 25 #include "views/controls/label.h" | 24 #include "views/controls/label.h" |
| 26 #include "views/controls/button/native_button.h" | 25 #include "views/controls/button/native_button.h" |
| 27 #include "views/controls/text_field.h" | 26 #include "views/controls/text_field.h" |
| 28 #include "views/controls/table/table_view.h" | 27 #include "views/controls/table/table_view.h" |
| 28 #include "views/standard_layout.h" |
| 29 | 29 |
| 30 // static | 30 // static |
| 31 views::Window* CookiesView::instance_ = NULL; | 31 views::Window* CookiesView::instance_ = NULL; |
| 32 static const int kCookieInfoViewBorderSize = 1; | 32 static const int kCookieInfoViewBorderSize = 1; |
| 33 static const int kCookieInfoViewInsetSize = 3; | 33 static const int kCookieInfoViewInsetSize = 3; |
| 34 static const int kSearchFilterDelayMs = 500; | 34 static const int kSearchFilterDelayMs = 500; |
| 35 | 35 |
| 36 /////////////////////////////////////////////////////////////////////////////// | 36 /////////////////////////////////////////////////////////////////////////////// |
| 37 // CookiesTableModel | 37 // CookiesTableModel |
| 38 | 38 |
| (...skipping 745 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 |