| 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 <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl | 11 #include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl |
| 12 #include <vsstyle.h> | 12 #include <vsstyle.h> |
| 13 | 13 |
| 14 #include "app/gfx/insets.h" | 14 #include "app/gfx/insets.h" |
| 15 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
| 16 #include "app/l10n_util_win.h" | 16 #include "app/l10n_util_win.h" |
| 17 #include "app/win_util.h" |
| 17 #include "base/clipboard.h" | 18 #include "base/clipboard.h" |
| 18 #include "base/gfx/native_theme.h" | 19 #include "base/gfx/native_theme.h" |
| 19 #include "base/scoped_clipboard_writer.h" | 20 #include "base/scoped_clipboard_writer.h" |
| 20 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 21 #include "base/win_util.h" | 22 #include "base/win_util.h" |
| 22 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 23 #include "chrome/common/win_util.h" | |
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| 25 #include "skia/ext/skia_utils_win.h" | 25 #include "skia/ext/skia_utils_win.h" |
| 26 #include "views/controls/hwnd_view.h" | 26 #include "views/controls/hwnd_view.h" |
| 27 #include "views/controls/menu/menu.h" | 27 #include "views/controls/menu/menu.h" |
| 28 #include "views/focus/focus_util_win.h" | 28 #include "views/focus/focus_util_win.h" |
| 29 #include "views/widget/widget.h" | 29 #include "views/widget/widget.h" |
| 30 | 30 |
| 31 using gfx::NativeTheme; | 31 using gfx::NativeTheme; |
| 32 | 32 |
| 33 namespace views { | 33 namespace views { |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 | 1183 |
| 1184 COLORREF bg_color; | 1184 COLORREF bg_color; |
| 1185 if (!use_default_background_color_) | 1185 if (!use_default_background_color_) |
| 1186 bg_color = skia::SkColorToCOLORREF(background_color_); | 1186 bg_color = skia::SkColorToCOLORREF(background_color_); |
| 1187 else | 1187 else |
| 1188 bg_color = GetSysColor(read_only_ ? COLOR_3DFACE : COLOR_WINDOW); | 1188 bg_color = GetSysColor(read_only_ ? COLOR_3DFACE : COLOR_WINDOW); |
| 1189 edit_->SetBackgroundColor(bg_color); | 1189 edit_->SetBackgroundColor(bg_color); |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 } // namespace views | 1192 } // namespace views |
| OLD | NEW |