| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "views/controls/text_field.h" | 5 #include "views/controls/text_field.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlapp.h> | 8 #include <atlapp.h> |
| 9 #include <atlcrack.h> | 9 #include <atlcrack.h> |
| 10 #include <atlctrls.h> | 10 #include <atlctrls.h> |
| 11 #include <atlmisc.h> |
| 11 #include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl | 12 #include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl |
| 12 #include <vsstyle.h> | 13 #include <vsstyle.h> |
| 13 | 14 |
| 14 #include "app/gfx/insets.h" | 15 #include "app/gfx/insets.h" |
| 15 #include "app/l10n_util.h" | 16 #include "app/l10n_util.h" |
| 16 #include "app/l10n_util_win.h" | 17 #include "app/l10n_util_win.h" |
| 17 #include "app/win_util.h" | 18 #include "app/win_util.h" |
| 18 #include "base/clipboard.h" | 19 #include "base/clipboard.h" |
| 19 #include "base/gfx/native_theme.h" | 20 #include "base/gfx/native_theme.h" |
| 20 #include "base/scoped_clipboard_writer.h" | 21 #include "base/scoped_clipboard_writer.h" |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 | 1185 |
| 1185 COLORREF bg_color; | 1186 COLORREF bg_color; |
| 1186 if (!use_default_background_color_) | 1187 if (!use_default_background_color_) |
| 1187 bg_color = skia::SkColorToCOLORREF(background_color_); | 1188 bg_color = skia::SkColorToCOLORREF(background_color_); |
| 1188 else | 1189 else |
| 1189 bg_color = GetSysColor(read_only_ ? COLOR_3DFACE : COLOR_WINDOW); | 1190 bg_color = GetSysColor(read_only_ ? COLOR_3DFACE : COLOR_WINDOW); |
| 1190 edit_->SetBackgroundColor(bg_color); | 1191 edit_->SetBackgroundColor(bg_color); |
| 1191 } | 1192 } |
| 1192 | 1193 |
| 1193 } // namespace views | 1194 } // namespace views |
| OLD | NEW |