| 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/views/options/cookies_view.h" | 5 #include "chrome/browser/ui/views/options/cookies_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/views/appcache_info_view.h" | 12 #include "chrome/browser/ui/views/appcache_info_view.h" |
| 13 #include "chrome/browser/ui/views/cookie_info_view.h" | 13 #include "chrome/browser/ui/views/cookie_info_view.h" |
| 14 #include "chrome/browser/ui/views/database_info_view.h" | 14 #include "chrome/browser/ui/views/database_info_view.h" |
| 15 #include "chrome/browser/ui/views/indexed_db_info_view.h" | 15 #include "chrome/browser/ui/views/indexed_db_info_view.h" |
| 16 #include "chrome/browser/ui/views/local_storage_info_view.h" | 16 #include "chrome/browser/ui/views/local_storage_info_view.h" |
| 17 #include "gfx/canvas.h" | |
| 18 #include "gfx/color_utils.h" | |
| 19 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 20 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
| 21 #include "net/base/cookie_monster.h" | 19 #include "net/base/cookie_monster.h" |
| 22 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/gfx/canvas.h" |
| 22 #include "ui/gfx/color_utils.h" |
| 23 #include "views/border.h" | 23 #include "views/border.h" |
| 24 #include "views/controls/label.h" | 24 #include "views/controls/label.h" |
| 25 #include "views/controls/button/native_button.h" | 25 #include "views/controls/button/native_button.h" |
| 26 #include "views/controls/tree/tree_view.h" | 26 #include "views/controls/tree/tree_view.h" |
| 27 #include "views/controls/textfield/textfield.h" | 27 #include "views/controls/textfield/textfield.h" |
| 28 #include "views/layout/grid_layout.h" | 28 #include "views/layout/grid_layout.h" |
| 29 #include "views/layout/layout_constants.h" | 29 #include "views/layout/layout_constants.h" |
| 30 | 30 |
| 31 // static | 31 // static |
| 32 views::Window* CookiesView::instance_ = NULL; | 32 views::Window* CookiesView::instance_ = NULL; |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 GetTotalNodeCount() > 1); | 392 GetTotalNodeCount() > 1); |
| 393 } | 393 } |
| 394 | 394 |
| 395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { | 395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { |
| 396 cookie_info_view_->SetVisible(view == cookie_info_view_); | 396 cookie_info_view_->SetVisible(view == cookie_info_view_); |
| 397 database_info_view_->SetVisible(view == database_info_view_); | 397 database_info_view_->SetVisible(view == database_info_view_); |
| 398 local_storage_info_view_->SetVisible(view == local_storage_info_view_); | 398 local_storage_info_view_->SetVisible(view == local_storage_info_view_); |
| 399 appcache_info_view_->SetVisible(view == appcache_info_view_); | 399 appcache_info_view_->SetVisible(view == appcache_info_view_); |
| 400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_); | 400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_); |
| 401 } | 401 } |
| OLD | NEW |