| OLD | NEW |
| 1 // Copyright (c) 2010 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/views/generic_info_view.h" | 5 #include "chrome/browser/ui/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" |
| 11 #include "views/controls/label.h" | 11 #include "views/controls/label.h" |
| 12 #include "views/controls/textfield/textfield.h" | 12 #include "views/controls/textfield/textfield.h" |
| 13 #include "views/standard_layout.h" | 13 #include "views/standard_layout.h" |
| 14 | 14 |
| 15 GenericInfoView::GenericInfoView(int number_of_rows) | 15 GenericInfoView::GenericInfoView(int number_of_rows) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 hierarchy. | 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 |