| 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/local_storage_set_item_info_view.h" | 5 #include "chrome/browser/ui/views/local_storage_set_item_info_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/gfx/color_utils.h" | 12 #include "ui/gfx/color_utils.h" |
| 13 #include "ui/views/layout/grid_layout.h" |
| 14 #include "ui/views/layout/layout_constants.h" |
| 13 #include "views/controls/label.h" | 15 #include "views/controls/label.h" |
| 14 #include "views/controls/textfield/textfield.h" | 16 #include "views/controls/textfield/textfield.h" |
| 15 #include "views/layout/grid_layout.h" | |
| 16 #include "views/layout/layout_constants.h" | |
| 17 | 17 |
| 18 static const int kLocalStorageSetItemInfoViewBorderSize = 1; | 18 static const int kLocalStorageSetItemInfoViewBorderSize = 1; |
| 19 static const int kLocalStorageSetItemInfoViewInsetSize = 3; | 19 static const int kLocalStorageSetItemInfoViewInsetSize = 3; |
| 20 | 20 |
| 21 /////////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////////// |
| 22 // LocalStorageSetItemInfoView, public: | 22 // LocalStorageSetItemInfoView, public: |
| 23 | 23 |
| 24 LocalStorageSetItemInfoView::LocalStorageSetItemInfoView() | 24 LocalStorageSetItemInfoView::LocalStorageSetItemInfoView() |
| 25 : host_value_field_(NULL), | 25 : host_value_field_(NULL), |
| 26 key_value_field_(NULL), | 26 key_value_field_(NULL), |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 host_value_field_->SetReadOnly(true); | 119 host_value_field_->SetReadOnly(true); |
| 120 host_value_field_->RemoveBorder(); | 120 host_value_field_->RemoveBorder(); |
| 121 host_value_field_->SetBackgroundColor(text_area_background); | 121 host_value_field_->SetBackgroundColor(text_area_background); |
| 122 key_value_field_->SetReadOnly(true); | 122 key_value_field_->SetReadOnly(true); |
| 123 key_value_field_->RemoveBorder(); | 123 key_value_field_->RemoveBorder(); |
| 124 key_value_field_->SetBackgroundColor(text_area_background); | 124 key_value_field_->SetBackgroundColor(text_area_background); |
| 125 value_value_field_->SetReadOnly(true); | 125 value_value_field_->SetReadOnly(true); |
| 126 value_value_field_->RemoveBorder(); | 126 value_value_field_->RemoveBorder(); |
| 127 value_value_field_->SetBackgroundColor(text_area_background); | 127 value_value_field_->SetBackgroundColor(text_area_background); |
| 128 } | 128 } |
| OLD | NEW |