OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_WAYLAND_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_WAYLAND_H_ |
6 #define VIEWS_IME_INPUT_METHOD_WAYLAND_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_WAYLAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "views/ime/input_method_base.h" | 11 #include "ui/views/ime/input_method_base.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 class InputMethodWayland : public InputMethodBase { | 15 class InputMethodWayland : public InputMethodBase { |
16 public: | 16 public: |
17 explicit InputMethodWayland(internal::InputMethodDelegate *delegate); | 17 explicit InputMethodWayland(internal::InputMethodDelegate *delegate); |
18 | 18 |
19 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | 19 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; |
20 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; | 20 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; |
21 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; | 21 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; |
22 virtual void CancelComposition(View* view) OVERRIDE; | 22 virtual void CancelComposition(View* view) OVERRIDE; |
23 virtual std::string GetInputLocale() OVERRIDE; | 23 virtual std::string GetInputLocale() OVERRIDE; |
24 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 24 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
25 virtual bool IsActive() OVERRIDE; | 25 virtual bool IsActive() OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 | 28 |
29 void ProcessKeyPressEvent(const KeyEvent& key); | 29 void ProcessKeyPressEvent(const KeyEvent& key); |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(InputMethodWayland); | 31 DISALLOW_COPY_AND_ASSIGN(InputMethodWayland); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace views | 34 } // namespace views |
35 | 35 |
36 #endif // VIEWS_IME_INPUT_METHOD_WAYLAND_H_ | 36 #endif // UI_VIEWS_IME_INPUT_METHOD_WAYLAND_H_ |
OLD | NEW |