OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/options/cookies_view.h" | 5 #include "chrome/browser/views/options/cookies_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
12 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/views/appcache_info_view.h" | 14 #include "chrome/browser/views/appcache_info_view.h" |
16 #include "chrome/browser/views/cookie_info_view.h" | 15 #include "chrome/browser/views/cookie_info_view.h" |
17 #include "chrome/browser/views/database_info_view.h" | 16 #include "chrome/browser/views/database_info_view.h" |
18 #include "chrome/browser/views/local_storage_info_view.h" | 17 #include "chrome/browser/views/local_storage_info_view.h" |
| 18 #include "gfx/canvas.h" |
19 #include "gfx/color_utils.h" | 19 #include "gfx/color_utils.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/locale_settings.h" | 21 #include "grit/locale_settings.h" |
22 #include "net/base/cookie_monster.h" | 22 #include "net/base/cookie_monster.h" |
23 #include "views/border.h" | 23 #include "views/border.h" |
24 #include "views/grid_layout.h" | 24 #include "views/grid_layout.h" |
25 #include "views/controls/label.h" | 25 #include "views/controls/label.h" |
26 #include "views/controls/button/native_button.h" | 26 #include "views/controls/button/native_button.h" |
27 #include "views/controls/tree/tree_view.h" | 27 #include "views/controls/tree/tree_view.h" |
28 #include "views/controls/textfield/textfield.h" | 28 #include "views/controls/textfield/textfield.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()-> | 375 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()-> |
376 GetTotalNodeCount() > 1); | 376 GetTotalNodeCount() > 1); |
377 } | 377 } |
378 | 378 |
379 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { | 379 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { |
380 cookie_info_view_->SetVisible(view == cookie_info_view_); | 380 cookie_info_view_->SetVisible(view == cookie_info_view_); |
381 database_info_view_->SetVisible(view == database_info_view_); | 381 database_info_view_->SetVisible(view == database_info_view_); |
382 local_storage_info_view_->SetVisible(view == local_storage_info_view_); | 382 local_storage_info_view_->SetVisible(view == local_storage_info_view_); |
383 appcache_info_view_->SetVisible(view == appcache_info_view_); | 383 appcache_info_view_->SetVisible(view == appcache_info_view_); |
384 } | 384 } |
OLD | NEW |