Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: chrome/browser/ui/views/indexed_db_info_view.cc

Issue 7692016: Delete indexedDBs from the cookie tree ui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/indexed_db_info_view.h" 5 #include "chrome/browser/ui/views/indexed_db_info_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 16 matching lines...) Expand all
27 : origin_value_field_(NULL), 27 : origin_value_field_(NULL),
28 size_value_field_(NULL), 28 size_value_field_(NULL),
29 last_modified_value_field_(NULL) { 29 last_modified_value_field_(NULL) {
30 } 30 }
31 31
32 IndexedDBInfoView::~IndexedDBInfoView() { 32 IndexedDBInfoView::~IndexedDBInfoView() {
33 } 33 }
34 34
35 void IndexedDBInfoView::SetIndexedDBInfo( 35 void IndexedDBInfoView::SetIndexedDBInfo(
36 const BrowsingDataIndexedDBHelper::IndexedDBInfo& indexed_db_info) { 36 const BrowsingDataIndexedDBHelper::IndexedDBInfo& indexed_db_info) {
37 origin_value_field_->SetText(UTF8ToWide(indexed_db_info.origin)); 37 origin_value_field_->SetText(UTF8ToWide(indexed_db_info.origin.spec()));
38 size_value_field_->SetText(ui::FormatBytes(indexed_db_info.size)); 38 size_value_field_->SetText(ui::FormatBytes(indexed_db_info.size));
39 last_modified_value_field_->SetText( 39 last_modified_value_field_->SetText(
40 base::TimeFormatFriendlyDateAndTime(indexed_db_info.last_modified)); 40 base::TimeFormatFriendlyDateAndTime(indexed_db_info.last_modified));
41 EnableIndexedDBDisplay(true); 41 EnableIndexedDBDisplay(true);
42 } 42 }
43 43
44 void IndexedDBInfoView::EnableIndexedDBDisplay(bool enabled) { 44 void IndexedDBInfoView::EnableIndexedDBDisplay(bool enabled) {
45 origin_value_field_->SetEnabled(enabled); 45 origin_value_field_->SetEnabled(enabled);
46 size_value_field_->SetEnabled(enabled); 46 size_value_field_->SetEnabled(enabled);
47 last_modified_value_field_->SetEnabled(enabled); 47 last_modified_value_field_->SetEnabled(enabled);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 origin_value_field_->SetReadOnly(true); 121 origin_value_field_->SetReadOnly(true);
122 origin_value_field_->RemoveBorder(); 122 origin_value_field_->RemoveBorder();
123 origin_value_field_->SetBackgroundColor(text_area_background); 123 origin_value_field_->SetBackgroundColor(text_area_background);
124 size_value_field_->SetReadOnly(true); 124 size_value_field_->SetReadOnly(true);
125 size_value_field_->RemoveBorder(); 125 size_value_field_->RemoveBorder();
126 size_value_field_->SetBackgroundColor(text_area_background); 126 size_value_field_->SetBackgroundColor(text_area_background);
127 last_modified_value_field_->SetReadOnly(true); 127 last_modified_value_field_->SetReadOnly(true);
128 last_modified_value_field_->RemoveBorder(); 128 last_modified_value_field_->RemoveBorder();
129 last_modified_value_field_->SetBackgroundColor(text_area_background); 129 last_modified_value_field_->SetBackgroundColor(text_area_background);
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc ('k') | chrome/browser/ui/webui/cookies_tree_model_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698