OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/textfield/native_textfield_win.h" | 5 #include "ui/views/controls/textfield/native_textfield_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/win/metro.h" | 13 #include "base/win/metro.h" |
14 #include "base/win/windows_version.h" | 14 #include "base/win/windows_version.h" |
15 #include "grit/ui_strings.h" | 15 #include "grit/ui_strings.h" |
16 #include "skia/ext/skia_utils_win.h" | 16 #include "skia/ext/skia_utils_win.h" |
17 #include "ui/base/accessibility/accessible_view_state.h" | 17 #include "ui/base/accessibility/accessible_view_state.h" |
18 #include "ui/base/clipboard/clipboard.h" | 18 #include "ui/base/clipboard/clipboard.h" |
19 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 19 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
20 #include "ui/base/events/event.h" | 20 #include "ui/base/events/event.h" |
21 #include "ui/base/ime/win/tsf_bridge.h" | 21 #include "ui/base/ime/win/tsf_bridge.h" |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 return true; | 1311 return true; |
1312 MSG msg(*GetCurrentMessage()); | 1312 MSG msg(*GetCurrentMessage()); |
1313 // ATL doesn't set the |time| field. | 1313 // ATL doesn't set the |time| field. |
1314 if (!msg.time) | 1314 if (!msg.time) |
1315 msg.time = GetMessageTime(); | 1315 msg.time = GetMessageTime(); |
1316 ui::MouseEvent mouse_event(msg); | 1316 ui::MouseEvent mouse_event(msg); |
1317 return !controller->HandleMouseEvent(textfield_, mouse_event); | 1317 return !controller->HandleMouseEvent(textfield_, mouse_event); |
1318 } | 1318 } |
1319 | 1319 |
1320 } // namespace views | 1320 } // namespace views |
OLD | NEW |