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/base/ime/input_method_ibus.h" | 5 #include "ui/base/ime/input_method_ibus.h" |
6 | 6 |
7 #include <X11/X.h> | 7 #include <X11/X.h> |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/Xutil.h> | 9 #include <X11/Xutil.h> |
10 #undef FocusIn | 10 #undef FocusIn |
11 #undef FocusOut | 11 #undef FocusOut |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <cstring> | 14 #include <cstring> |
15 #include <set> | 15 #include <set> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
19 #include "base/bind.h" | 19 #include "base/bind.h" |
20 #include "base/chromeos/chromeos_version.h" | 20 #include "base/chromeos/chromeos_version.h" |
21 #include "base/i18n/char_iterator.h" | 21 #include "base/i18n/char_iterator.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
25 #include "base/third_party/icu/icu_utf.h" | 25 #include "base/third_party/icu/icu_utf.h" |
26 #include "chromeos/dbus/dbus_thread_manager.h" | 26 #include "chromeos/dbus/dbus_thread_manager.h" |
27 #include "chromeos/dbus/ibus/ibus_client.h" | 27 #include "chromeos/dbus/ibus/ibus_client.h" |
28 #include "chromeos/dbus/ibus/ibus_input_context_client.h" | 28 #include "chromeos/dbus/ibus/ibus_input_context_client.h" |
29 #include "chromeos/dbus/ibus/ibus_text.h" | 29 #include "chromeos/dbus/ibus/ibus_text.h" |
30 #include "ui/base/events/event.h" | 30 #include "ui/base/events/event.h" |
31 #include "ui/base/events/event_constants.h" | 31 #include "ui/base/events/event_constants.h" |
32 #include "ui/base/events/event_utils.h" | 32 #include "ui/base/events/event_utils.h" |
33 #include "ui/base/ime/text_input_client.h" | 33 #include "ui/base/ime/text_input_client.h" |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 } | 955 } |
956 | 956 |
957 // Use a black thin underline by default. | 957 // Use a black thin underline by default. |
958 if (out_composition->underlines.empty()) { | 958 if (out_composition->underlines.empty()) { |
959 out_composition->underlines.push_back(CompositionUnderline( | 959 out_composition->underlines.push_back(CompositionUnderline( |
960 0, length, SK_ColorBLACK, false /* thick */)); | 960 0, length, SK_ColorBLACK, false /* thick */)); |
961 } | 961 } |
962 } | 962 } |
963 | 963 |
964 } // namespace ui | 964 } // namespace ui |
OLD | NEW |