Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: ui/chromeos/ime/ime_keyboard_x11.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMEOS_IME_IME_KEYBOARD_X11_H_ 5 #ifndef UI_CHROMEOS_IME_IME_KEYBOARD_X11_H_
6 #define CHROMEOS_IME_IME_KEYBOARD_X11_H_ 6 #define UI_CHROMEOS_IME_IME_KEYBOARD_X11_H_
7 7
8 #include "chromeos/ime/ime_keyboard.h" 8 #include "ui/chromeos/ime/ime_keyboard.h"
9 9
10 #include <cstdlib> 10 #include <cstdlib>
11 #include <cstring> 11 #include <cstring>
12 #include <queue> 12 #include <queue>
13 #include <set> 13 #include <set>
14 #include <utility> 14 #include <utility>
15 15
16 #include "base/bind.h" 16 #include "base/bind.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/process/kill.h" 20 #include "base/process/kill.h"
21 #include "base/process/launch.h" 21 #include "base/process/launch.h"
22 #include "base/process/process_handle.h" 22 #include "base/process/process_handle.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "base/strings/stringprintf.h" 24 #include "base/strings/stringprintf.h"
25 #include "base/sys_info.h" 25 #include "base/sys_info.h"
26 #include "base/threading/thread_checker.h" 26 #include "base/threading/thread_checker.h"
27 #include "ui/gfx/x/x11_types.h" 27 #include "ui/chromeos/ui_chromeos_export.h"
28
29 // These includes conflict with base/tracked_objects.h so must come last.
30 #include <X11/XKBlib.h>
31 #include <X11/Xlib.h>
32
33 28
34 namespace chromeos { 29 namespace chromeos {
35 namespace input_method { 30 namespace input_method {
36 31
37 class CHROMEOS_EXPORT ImeKeyboardX11 : public ImeKeyboard { 32 class UI_CHROMEOS_EXPORT ImeKeyboardX11 : public ImeKeyboard {
38 public: 33 public:
39 ImeKeyboardX11(); 34 ImeKeyboardX11();
40 virtual ~ImeKeyboardX11(); 35 virtual ~ImeKeyboardX11();
41 36
42 // ImeKeyboard: 37 // ImeKeyboard:
43 virtual bool SetCurrentKeyboardLayoutByName( 38 virtual bool SetCurrentKeyboardLayoutByName(
44 const std::string& layout_name) override; 39 const std::string& layout_name) override;
45 virtual bool ReapplyCurrentKeyboardLayout() override; 40 virtual bool ReapplyCurrentKeyboardLayout() override;
46 virtual void ReapplyCurrentModifierLockStatus() override; 41 virtual void ReapplyCurrentModifierLockStatus() override;
47 virtual void DisableNumLock() override; 42 virtual void DisableNumLock() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 78
84 base::WeakPtrFactory<ImeKeyboardX11> weak_factory_; 79 base::WeakPtrFactory<ImeKeyboardX11> weak_factory_;
85 80
86 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardX11); 81 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardX11);
87 }; 82 };
88 83
89 84
90 } // namespace input_method 85 } // namespace input_method
91 } // namespace chromeos 86 } // namespace chromeos
92 87
93 #endif // CHROMEOS_IME_IME_KEYBOARD_X11_H_ 88 #endif // UI_CHROMEOS_IME_IME_KEYBOARD_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698