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/database_info_view.h" | 5 #include "chrome/browser/ui/views/database_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/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "gfx/color_utils.h" | |
12 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
13 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/gfx/color_utils.h" |
14 #include "views/controls/label.h" | 14 #include "views/controls/label.h" |
15 #include "views/controls/textfield/textfield.h" | 15 #include "views/controls/textfield/textfield.h" |
16 #include "views/layout/grid_layout.h" | 16 #include "views/layout/grid_layout.h" |
17 #include "views/layout/layout_constants.h" | 17 #include "views/layout/layout_constants.h" |
18 | 18 |
19 static const int kDatabaseInfoViewBorderSize = 1; | 19 static const int kDatabaseInfoViewBorderSize = 1; |
20 static const int kDatabaseInfoViewInsetSize = 3; | 20 static const int kDatabaseInfoViewInsetSize = 3; |
21 | 21 |
22 /////////////////////////////////////////////////////////////////////////////// | 22 /////////////////////////////////////////////////////////////////////////////// |
23 // DatabaseInfoView, public: | 23 // DatabaseInfoView, public: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 description_value_field_->SetReadOnly(true); | 139 description_value_field_->SetReadOnly(true); |
140 description_value_field_->RemoveBorder(); | 140 description_value_field_->RemoveBorder(); |
141 description_value_field_->SetBackgroundColor(text_area_background); | 141 description_value_field_->SetBackgroundColor(text_area_background); |
142 size_value_field_->SetReadOnly(true); | 142 size_value_field_->SetReadOnly(true); |
143 size_value_field_->RemoveBorder(); | 143 size_value_field_->RemoveBorder(); |
144 size_value_field_->SetBackgroundColor(text_area_background); | 144 size_value_field_->SetBackgroundColor(text_area_background); |
145 last_modified_value_field_->SetReadOnly(true); | 145 last_modified_value_field_->SetReadOnly(true); |
146 last_modified_value_field_->RemoveBorder(); | 146 last_modified_value_field_->RemoveBorder(); |
147 last_modified_value_field_->SetBackgroundColor(text_area_background); | 147 last_modified_value_field_->SetBackgroundColor(text_area_background); |
148 } | 148 } |
OLD | NEW |