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

Side by Side Diff: ui/base/ime/input_method_linux_x11.h

Issue 108143003: Rename input_method_linux_x11 as input_method_auralinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build Created 7 years 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
« no previous file with comments | « ui/base/ime/input_method_initializer.cc ('k') | ui/base/ime/input_method_linux_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
6 #define UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/base/ime/input_method_base.h"
10 #include "ui/base/ime/linux/linux_input_method_context.h"
11
12 namespace ui {
13
14 // A ui::InputMethod implementation for a X11 event loop on GNU/Linux.
15 // This class is not designed for supporting CrOS. The implementation details
16 // are separated to ui::LinuxInputMethodContext interface.
17 class InputMethodLinuxX11 : public InputMethodBase,
18 public LinuxInputMethodContextDelegate {
19 public:
20 explicit InputMethodLinuxX11(internal::InputMethodDelegate* delegate);
21 virtual ~InputMethodLinuxX11();
22
23 // Initializes input methods. This function must be called once prior to
24 // any use of this instance. This function is supposed to be called from
25 // ui::InitializeInputMethod().
26 static void Initialize();
27
28 // Overriden from InputMethod.
29 virtual void Init(bool focused) OVERRIDE;
30 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
31 NativeEventResult* result) OVERRIDE;
32 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE;
33 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE;
34 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE;
35 virtual void CancelComposition(const TextInputClient* client) OVERRIDE;
36 virtual void OnInputLocaleChanged() OVERRIDE;
37 virtual std::string GetInputLocale() OVERRIDE;
38 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
39 virtual bool IsActive() OVERRIDE;
40 virtual bool IsCandidatePopupOpen() const OVERRIDE;
41
42 // Overriden from ui::LinuxInputMethodContextDelegate
43 virtual void OnCommit(const base::string16& text) OVERRIDE;
44 virtual void OnPreeditChanged(const CompositionText& composition_text)
45 OVERRIDE;
46 virtual void OnPreeditEnd() OVERRIDE;
47 virtual void OnPreeditStart() OVERRIDE;
48
49 protected:
50 // Overridden from InputMethodBase.
51 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before,
52 TextInputClient* focused) OVERRIDE;
53
54 scoped_ptr<LinuxInputMethodContext> input_method_context_;
55
56 DISALLOW_COPY_AND_ASSIGN(InputMethodLinuxX11);
57 };
58
59 } // namespace ui
60
61 #endif // UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_initializer.cc ('k') | ui/base/ime/input_method_linux_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698