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

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

Issue 45733008: sk6_charactercomposer: Merged DispatchKeyEvent and its fabricated version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « ui/base/ime/input_method_ibus_unittest.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
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 #ifndef UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
6 #define UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_ 6 #define UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/base/ime/input_method_base.h" 9 #include "ui/base/ime/input_method_base.h"
10 #include "ui/base/ime/linux/linux_input_method_context.h" 10 #include "ui/base/ime/linux/linux_input_method_context.h"
11 11
12 typedef struct _GtkIMContext GtkIMContext; 12 typedef struct _GtkIMContext GtkIMContext;
13 13
14 namespace ui { 14 namespace ui {
15 15
16 // A ui::InputMethod implementation for a X11 event loop on GNU/Linux. 16 // A ui::InputMethod implementation for a X11 event loop on GNU/Linux.
17 // This class is not designed for supporting CrOS. The implementation details 17 // This class is not designed for supporting CrOS. The implementation details
18 // are separated to ui::LinuxInputMethodContext interface. 18 // are separated to ui::LinuxInputMethodContext interface.
19 class InputMethodLinuxX11 : public InputMethodBase, 19 class InputMethodLinuxX11 : public InputMethodBase,
20 public LinuxInputMethodContextDelegate { 20 public LinuxInputMethodContextDelegate {
21 public: 21 public:
22 explicit InputMethodLinuxX11(internal::InputMethodDelegate* delegate); 22 explicit InputMethodLinuxX11(internal::InputMethodDelegate* delegate);
23 virtual ~InputMethodLinuxX11(); 23 virtual ~InputMethodLinuxX11();
24 24
25 // Overriden from InputMethod. 25 // Overriden from InputMethod.
26 virtual void Init(bool focused) OVERRIDE; 26 virtual void Init(bool focused) OVERRIDE;
27 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 27 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
28 NativeEventResult* result) OVERRIDE; 28 NativeEventResult* result) OVERRIDE;
29 virtual bool DispatchKeyEvent(const base::NativeEvent& native_key_event) 29 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE;
30 OVERRIDE;
31 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; 30 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE;
32 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; 31 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE;
33 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; 32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE;
34 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; 33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE;
35 virtual void OnInputLocaleChanged() OVERRIDE; 34 virtual void OnInputLocaleChanged() OVERRIDE;
36 virtual std::string GetInputLocale() OVERRIDE; 35 virtual std::string GetInputLocale() OVERRIDE;
37 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; 36 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
38 virtual bool IsActive() OVERRIDE; 37 virtual bool IsActive() OVERRIDE;
39 virtual bool IsCandidatePopupOpen() const OVERRIDE; 38 virtual bool IsCandidatePopupOpen() const OVERRIDE;
40 39
(...skipping 11 matching lines...) Expand all
52 51
53 private: 52 private:
54 scoped_ptr<LinuxInputMethodContext> input_method_context_; 53 scoped_ptr<LinuxInputMethodContext> input_method_context_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(InputMethodLinuxX11); 55 DISALLOW_COPY_AND_ASSIGN(InputMethodLinuxX11);
57 }; 56 };
58 57
59 } // namespace ui 58 } // namespace ui
60 59
61 #endif // UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_ 60 #endif // UI_BASE_IME_INPUT_METHOD_LINUX_X11_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_ibus_unittest.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