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/database_open_info_view.h" | 5 #include "chrome/browser/views/database_open_info_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/gfx/color_utils.h" | 9 #include "app/gfx/color_utils.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
12 #include "base/string_util.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/grid_layout.h" | 14 #include "views/grid_layout.h" |
15 #include "views/controls/label.h" | 15 #include "views/controls/label.h" |
16 #include "views/controls/textfield/textfield.h" | 16 #include "views/controls/textfield/textfield.h" |
17 #include "views/standard_layout.h" | 17 #include "views/standard_layout.h" |
18 | 18 |
19 static const int kDatabaseOpenInfoViewBorderSize = 1; | 19 static const int kDatabaseOpenInfoViewBorderSize = 1; |
20 static const int kDatabaseOpenInfoViewInsetSize = 3; | 20 static const int kDatabaseOpenInfoViewInsetSize = 3; |
21 | 21 |
22 /////////////////////////////////////////////////////////////////////////////// | 22 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE); | 98 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE); |
99 // Now that the Textfields are in the view hierarchy, we can initialize them. | 99 // Now that the Textfields are in the view hierarchy, we can initialize them. |
100 host_value_field_->SetReadOnly(true); | 100 host_value_field_->SetReadOnly(true); |
101 host_value_field_->RemoveBorder(); | 101 host_value_field_->RemoveBorder(); |
102 host_value_field_->SetBackgroundColor(text_area_background); | 102 host_value_field_->SetBackgroundColor(text_area_background); |
103 database_name_value_field_->SetReadOnly(true); | 103 database_name_value_field_->SetReadOnly(true); |
104 database_name_value_field_->RemoveBorder(); | 104 database_name_value_field_->RemoveBorder(); |
105 database_name_value_field_->SetBackgroundColor(text_area_background); | 105 database_name_value_field_->SetBackgroundColor(text_area_background); |
106 } | 106 } |
107 | 107 |
OLD | NEW |