OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/cookie_info_view.h" | 5 #include "chrome/browser/ui/views/cookie_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/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 views::Label* label, | 121 views::Label* label, |
122 views::Textfield* text_field) { | 122 views::Textfield* text_field) { |
123 layout->StartRow(0, layout_id); | 123 layout->StartRow(0, layout_id); |
124 layout->AddView(label); | 124 layout->AddView(label); |
125 layout->AddView(text_field, 2, 1, views::GridLayout::FILL, | 125 layout->AddView(text_field, 2, 1, views::GridLayout::FILL, |
126 views::GridLayout::CENTER); | 126 views::GridLayout::CENTER); |
127 layout->AddPaddingRow(0, kExtraLineHeightPadding); | 127 layout->AddPaddingRow(0, kExtraLineHeightPadding); |
128 | 128 |
129 // Now that the Textfield is in the view hierarchy, it can be initialized. | 129 // Now that the Textfield is in the view hierarchy, it can be initialized. |
130 text_field->SetReadOnly(true); | 130 text_field->SetReadOnly(true); |
131 text_field->RemoveBorder(); | 131 text_field->set_border(NULL); |
132 // Color these borderless text areas the same as the containing dialog. | 132 // Color these borderless text areas the same as the containing dialog. |
133 text_field->SetBackgroundColor(GetNativeTheme()->GetSystemColor( | 133 text_field->SetBackgroundColor(GetNativeTheme()->GetSystemColor( |
134 ui::NativeTheme::kColorId_DialogBackground)); | 134 ui::NativeTheme::kColorId_DialogBackground)); |
135 text_field->SetTextColor(SkColorSetRGB(0x78, 0x78, 0x78)); | 135 text_field->SetTextColor(SkColorSetRGB(0x78, 0x78, 0x78)); |
136 } | 136 } |
137 | 137 |
138 /////////////////////////////////////////////////////////////////////////////// | 138 /////////////////////////////////////////////////////////////////////////////// |
139 // CookieInfoView, private: | 139 // CookieInfoView, private: |
140 | 140 |
141 void CookieInfoView::Init() { | 141 void CookieInfoView::Init() { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 AddLabelRow(three_column_layout_id, layout, domain_label_, | 184 AddLabelRow(three_column_layout_id, layout, domain_label_, |
185 domain_value_field_); | 185 domain_value_field_); |
186 AddLabelRow(three_column_layout_id, layout, path_label_, path_value_field_); | 186 AddLabelRow(three_column_layout_id, layout, path_label_, path_value_field_); |
187 AddLabelRow(three_column_layout_id, layout, send_for_label_, | 187 AddLabelRow(three_column_layout_id, layout, send_for_label_, |
188 send_for_value_field_); | 188 send_for_value_field_); |
189 AddLabelRow(three_column_layout_id, layout, created_label_, | 189 AddLabelRow(three_column_layout_id, layout, created_label_, |
190 created_value_field_); | 190 created_value_field_); |
191 AddLabelRow(three_column_layout_id, layout, expires_label_, | 191 AddLabelRow(three_column_layout_id, layout, expires_label_, |
192 expires_value_field_); | 192 expires_value_field_); |
193 } | 193 } |
OLD | NEW |