| OLD | NEW |
| 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/local_storage_set_item_info_view.h" | 5 #include "chrome/browser/ui/views/local_storage_set_item_info_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // LocalStorageSetItemInfoView, private: | 67 // LocalStorageSetItemInfoView, private: |
| 68 | 68 |
| 69 void LocalStorageSetItemInfoView::Init() { | 69 void LocalStorageSetItemInfoView::Init() { |
| 70 SkColor border_color = color_utils::GetSysSkColor(COLOR_3DSHADOW); | 70 SkColor border_color = color_utils::GetSysSkColor(COLOR_3DSHADOW); |
| 71 views::Border* border = views::Border::CreateSolidBorder( | 71 views::Border* border = views::Border::CreateSolidBorder( |
| 72 kLocalStorageSetItemInfoViewBorderSize, border_color); | 72 kLocalStorageSetItemInfoViewBorderSize, border_color); |
| 73 set_border(border); | 73 set_border(border); |
| 74 | 74 |
| 75 // TODO(jorlow): These strings are not quite right, but we're post-freeze. | 75 // TODO(jorlow): These strings are not quite right, but we're post-freeze. |
| 76 // http://crbug.com/68688 | 76 // http://crbug.com/68688 |
| 77 views::Label* host_label = new views::Label(UTF16ToWide( | 77 views::Label* host_label = new views::Label( |
| 78 l10n_util::GetStringUTF16(IDS_COOKIES_COOKIE_DOMAIN_LABEL))); | 78 l10n_util::GetStringUTF16(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(UTF16ToWide( | 80 views::Label* key_label = new views::Label( |
| 81 l10n_util::GetStringUTF16(IDS_COOKIES_LOCAL_STORAGE_KEY_LABEL))); | 81 l10n_util::GetStringUTF16(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(UTF16ToWide( | 83 views::Label* value_label = new views::Label( |
| 84 l10n_util::GetStringUTF16(IDS_COOKIES_LOCAL_STORAGE_VALUE_LABEL))); | 84 l10n_util::GetStringUTF16(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 24 matching lines...) Expand all Loading... |
| 119 host_value_field_->SetReadOnly(true); | 119 host_value_field_->SetReadOnly(true); |
| 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 } |
| OLD | NEW |