| 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/local_storage_set_item_info_view.h" | 5 #include "chrome/browser/views/local_storage_set_item_info_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 SkColor border_color = color_utils::GetSysSkColor(COLOR_3DSHADOW); | 71 SkColor border_color = color_utils::GetSysSkColor(COLOR_3DSHADOW); |
| 72 views::Border* border = views::Border::CreateSolidBorder( | 72 views::Border* border = views::Border::CreateSolidBorder( |
| 73 kLocalStorageSetItemInfoViewBorderSize, border_color); | 73 kLocalStorageSetItemInfoViewBorderSize, border_color); |
| 74 set_border(border); | 74 set_border(border); |
| 75 | 75 |
| 76 // TODO(jorlow): These strings are not quite right, but we're post-freeze. | 76 // TODO(jorlow): These strings are not quite right, but we're post-freeze. |
| 77 views::Label* host_label = new views::Label( | 77 views::Label* host_label = new views::Label( |
| 78 l10n_util::GetString(IDS_COOKIES_COOKIE_DOMAIN_LABEL)); | 78 l10n_util::GetString(IDS_COOKIES_COOKIE_DOMAIN_LABEL)); |
| 79 host_value_field_ = new views::Textfield; | 79 host_value_field_ = new views::Textfield; |
| 80 views::Label* key_label = new views::Label( | 80 views::Label* key_label = new views::Label( |
| 81 l10n_util::GetString(IDS_COOKIES_COOKIE_NAME_LABEL)); | 81 l10n_util::GetString(IDS_COOKIES_LOCAL_STORAGE_KEY_LABEL)); |
| 82 key_value_field_ = new views::Textfield; | 82 key_value_field_ = new views::Textfield; |
| 83 views::Label* value_label = new views::Label( | 83 views::Label* value_label = new views::Label( |
| 84 l10n_util::GetString(IDS_COOKIES_COOKIE_CONTENT_LABEL)); | 84 l10n_util::GetString(IDS_COOKIES_LOCAL_STORAGE_VALUE_LABEL)); |
| 85 value_value_field_ = new views::Textfield; | 85 value_value_field_ = new views::Textfield; |
| 86 | 86 |
| 87 using views::GridLayout; | 87 using views::GridLayout; |
| 88 | 88 |
| 89 GridLayout* layout = new GridLayout(this); | 89 GridLayout* layout = new GridLayout(this); |
| 90 layout->SetInsets(kLocalStorageSetItemInfoViewInsetSize, | 90 layout->SetInsets(kLocalStorageSetItemInfoViewInsetSize, |
| 91 kLocalStorageSetItemInfoViewInsetSize, | 91 kLocalStorageSetItemInfoViewInsetSize, |
| 92 kLocalStorageSetItemInfoViewInsetSize, | 92 kLocalStorageSetItemInfoViewInsetSize, |
| 93 kLocalStorageSetItemInfoViewInsetSize); | 93 kLocalStorageSetItemInfoViewInsetSize); |
| 94 SetLayoutManager(layout); | 94 SetLayoutManager(layout); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 120 host_value_field_->RemoveBorder(); | 120 host_value_field_->RemoveBorder(); |
| 121 host_value_field_->SetBackgroundColor(text_area_background); | 121 host_value_field_->SetBackgroundColor(text_area_background); |
| 122 key_value_field_->SetReadOnly(true); | 122 key_value_field_->SetReadOnly(true); |
| 123 key_value_field_->RemoveBorder(); | 123 key_value_field_->RemoveBorder(); |
| 124 key_value_field_->SetBackgroundColor(text_area_background); | 124 key_value_field_->SetBackgroundColor(text_area_background); |
| 125 value_value_field_->SetReadOnly(true); | 125 value_value_field_->SetReadOnly(true); |
| 126 value_value_field_->RemoveBorder(); | 126 value_value_field_->RemoveBorder(); |
| 127 value_value_field_->SetBackgroundColor(text_area_background); | 127 value_value_field_->SetBackgroundColor(text_area_background); |
| 128 } | 128 } |
| 129 | 129 |
| OLD | NEW |