| 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/gtk/gtk_chrome_cookie_view.h" | 5 #include "chrome/browser/gtk/gtk_chrome_cookie_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/gtk/gtk_util.h" | 10 #include "chrome/browser/gtk/gtk_util.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 self->local_storage_item_table_ = gtk_table_new(3, 2, FALSE); | 305 self->local_storage_item_table_ = gtk_table_new(3, 2, FALSE); |
| 306 gtk_container_add(GTK_CONTAINER(self->table_box_), | 306 gtk_container_add(GTK_CONTAINER(self->table_box_), |
| 307 self->local_storage_item_table_); | 307 self->local_storage_item_table_); |
| 308 gtk_table_set_col_spacing(GTK_TABLE(self->local_storage_item_table_), 0, | 308 gtk_table_set_col_spacing(GTK_TABLE(self->local_storage_item_table_), 0, |
| 309 gtk_util::kLabelSpacing); | 309 gtk_util::kLabelSpacing); |
| 310 | 310 |
| 311 row = 0; | 311 row = 0; |
| 312 InitDetailRow(row++, IDS_COOKIES_COOKIE_DOMAIN_LABEL, | 312 InitDetailRow(row++, IDS_COOKIES_COOKIE_DOMAIN_LABEL, |
| 313 self->local_storage_item_table_, | 313 self->local_storage_item_table_, |
| 314 &self->local_storage_item_origin_entry_); | 314 &self->local_storage_item_origin_entry_); |
| 315 InitDetailRow(row++, IDS_COOKIES_COOKIE_NAME_LABEL, | 315 InitDetailRow(row++, IDS_COOKIES_LOCAL_STORAGE_KEY_LABEL, |
| 316 self->local_storage_item_table_, | 316 self->local_storage_item_table_, |
| 317 &self->local_storage_item_key_entry_); | 317 &self->local_storage_item_key_entry_); |
| 318 InitDetailRow(row++, IDS_COOKIES_COOKIE_CONTENT_LABEL, | 318 InitDetailRow(row++, IDS_COOKIES_LOCAL_STORAGE_VALUE_LABEL, |
| 319 self->local_storage_item_table_, | 319 self->local_storage_item_table_, |
| 320 &self->local_storage_item_value_entry_); | 320 &self->local_storage_item_value_entry_); |
| 321 | 321 |
| 322 // Database accessed prompt. | 322 // Database accessed prompt. |
| 323 self->database_accessed_table_ = gtk_table_new(2, 2, FALSE); | 323 self->database_accessed_table_ = gtk_table_new(2, 2, FALSE); |
| 324 gtk_container_add(GTK_CONTAINER(self->table_box_), | 324 gtk_container_add(GTK_CONTAINER(self->table_box_), |
| 325 self->database_accessed_table_); | 325 self->database_accessed_table_); |
| 326 gtk_table_set_col_spacing(GTK_TABLE(self->local_storage_item_table_), 0, | 326 gtk_table_set_col_spacing(GTK_TABLE(self->local_storage_item_table_), 0, |
| 327 gtk_util::kLabelSpacing); | 327 gtk_util::kLabelSpacing); |
| 328 | 328 |
| 329 row = 0; | 329 row = 0; |
| 330 InitDetailRow(row++, IDS_COOKIES_COOKIE_DOMAIN_LABEL, | 330 InitDetailRow(row++, IDS_COOKIES_COOKIE_DOMAIN_LABEL, |
| 331 self->database_accessed_table_, | 331 self->database_accessed_table_, |
| 332 &self->database_accessed_origin_entry_); | 332 &self->database_accessed_origin_entry_); |
| 333 InitDetailRow(row++, IDS_COOKIES_COOKIE_NAME_LABEL, | 333 InitDetailRow(row++, IDS_COOKIES_WEB_DATABASE_NAME, |
| 334 self->database_accessed_table_, | 334 self->database_accessed_table_, |
| 335 &self->database_accessed_name_entry_); | 335 &self->database_accessed_name_entry_); |
| 336 | 336 |
| 337 // AppCache created prompt. | 337 // AppCache created prompt. |
| 338 self->appcache_created_table_ = gtk_table_new(1, 2, FALSE); | 338 self->appcache_created_table_ = gtk_table_new(1, 2, FALSE); |
| 339 gtk_container_add(GTK_CONTAINER(self->table_box_), | 339 gtk_container_add(GTK_CONTAINER(self->table_box_), |
| 340 self->appcache_created_table_); | 340 self->appcache_created_table_); |
| 341 gtk_table_set_col_spacing(GTK_TABLE(self->appcache_created_table_), 0, | 341 gtk_table_set_col_spacing(GTK_TABLE(self->appcache_created_table_), 0, |
| 342 gtk_util::kLabelSpacing); | 342 gtk_util::kLabelSpacing); |
| 343 row = 0; | 343 row = 0; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 } | 506 } |
| 507 | 507 |
| 508 void gtk_chrome_cookie_view_display_appcache_created( | 508 void gtk_chrome_cookie_view_display_appcache_created( |
| 509 GtkChromeCookieView* self, | 509 GtkChromeCookieView* self, |
| 510 const GURL& manifest_url) { | 510 const GURL& manifest_url) { |
| 511 UpdateVisibleDetailedInfo(self, self->appcache_created_table_); | 511 UpdateVisibleDetailedInfo(self, self->appcache_created_table_); |
| 512 gtk_entry_set_text(GTK_ENTRY(self->appcache_created_manifest_entry_), | 512 gtk_entry_set_text(GTK_ENTRY(self->appcache_created_manifest_entry_), |
| 513 manifest_url.spec().c_str()); | 513 manifest_url.spec().c_str()); |
| 514 SetAppCacheCreatedSensitivity(self, TRUE); | 514 SetAppCacheCreatedSensitivity(self, TRUE); |
| 515 } | 515 } |
| OLD | NEW |