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" | 9 #include "app/gfx/canvas.h" |
10 #include "app/gfx/color_utils.h" | 10 #include "app/gfx/color_utils.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 } | 341 } |
342 | 342 |
343 void CookiesView::UpdateRemoveButtonsState() { | 343 void CookiesView::UpdateRemoveButtonsState() { |
344 remove_button_->SetEnabled(cookies_tree_model_->GetRoot()-> | 344 remove_button_->SetEnabled(cookies_tree_model_->GetRoot()-> |
345 GetTotalNodeCount() > 1); | 345 GetTotalNodeCount() > 1); |
346 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()-> | 346 remove_all_button_->SetEnabled(cookies_tree_model_->GetRoot()-> |
347 GetTotalNodeCount() > 1); | 347 GetTotalNodeCount() > 1); |
348 } | 348 } |
349 | 349 |
350 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { | 350 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { |
351 view->SetVisible(true); | 351 cookie_info_view_->SetVisible(view == cookie_info_view_); |
352 if (view != cookie_info_view_) | 352 database_info_view_->SetVisible(view == database_info_view_); |
353 cookie_info_view_->SetVisible(false); | 353 local_storage_info_view_->SetVisible(view == local_storage_info_view_); |
354 if (view != database_info_view_) | |
355 database_info_view_->SetVisible(false); | |
356 if (view != local_storage_info_view_) | |
357 local_storage_info_view_->SetVisible(false); | |
358 } | 354 } |
OLD | NEW |