OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/ime/xkeyboard.h" | 5 #include "chromeos/ime/xkeyboard.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <cstring> | 8 #include <cstring> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/chromeos/chromeos_version.h" | 13 #include "base/chromeos/chromeos_version.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
18 #include "base/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "base/threading/thread_checker.h" | 20 #include "base/threading/thread_checker.h" |
21 | 21 |
22 // These includes conflict with base/tracked_objects.h so must come last. | 22 // These includes conflict with base/tracked_objects.h so must come last. |
23 #include <X11/XKBlib.h> | 23 #include <X11/XKBlib.h> |
24 #include <X11/Xlib.h> | 24 #include <X11/Xlib.h> |
25 #include <glib.h> | 25 #include <glib.h> |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
28 namespace input_method { | 28 namespace input_method { |
29 namespace { | 29 namespace { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 return CheckLayoutName(layout_name); | 369 return CheckLayoutName(layout_name); |
370 } | 370 } |
371 | 371 |
372 // static | 372 // static |
373 XKeyboard* XKeyboard::Create() { | 373 XKeyboard* XKeyboard::Create() { |
374 return new XKeyboardImpl(); | 374 return new XKeyboardImpl(); |
375 } | 375 } |
376 | 376 |
377 } // namespace input_method | 377 } // namespace input_method |
378 } // namespace chromeos | 378 } // namespace chromeos |
OLD | NEW |