| 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/generic_info_view.h" | 5 #include "chrome/browser/views/generic_info_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "gfx/color_utils.h" | 8 #include "gfx/color_utils.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "views/grid_layout.h" | 10 #include "views/grid_layout.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 int layout_id, views::GridLayout* layout, views::Label* name, | 91 int layout_id, views::GridLayout* layout, views::Label* name, |
| 92 views::Textfield* value) { | 92 views::Textfield* value) { |
| 93 // Add to the view hierarchy. | 93 // Add to the view hierarchy. |
| 94 layout->StartRow(0, layout_id); | 94 layout->StartRow(0, layout_id); |
| 95 layout->AddView(name); | 95 layout->AddView(name); |
| 96 layout->AddView(value); | 96 layout->AddView(value); |
| 97 | 97 |
| 98 // Color these borderless text areas the same as the containing dialog. | 98 // Color these borderless text areas the same as the containing dialog. |
| 99 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE); | 99 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE); |
| 100 | 100 |
| 101 // Init them now that they're in the view heirarchy. | 101 // Init them now that they're in the view hierarchy. |
| 102 value->SetReadOnly(true); | 102 value->SetReadOnly(true); |
| 103 value->RemoveBorder(); | 103 value->RemoveBorder(); |
| 104 value->SetBackgroundColor(text_area_background); | 104 value->SetBackgroundColor(text_area_background); |
| 105 } | 105 } |
| OLD | NEW |