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

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

Issue 1394883004: Introduce InputMethodAuraAndroid for Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 5 years, 2 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MINIMAL_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_ANDROID_H_
6 #define UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ 6 #define UI_BASE_IME_INPUT_METHOD_ANDROID_H_
7 7
8 #include "ui/base/ime/input_method_base.h" 8 #include "ui/base/ime/input_method_base.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // A minimal implementation of ui::InputMethod, which supports only the direct 12 // A ui::InputMethod implementation for Aura on Android platform.
13 // input without any compositions or conversions. 13 class UI_BASE_IME_EXPORT InputMethodAndroid : public InputMethodBase {
14 class UI_BASE_IME_EXPORT InputMethodMinimal : public InputMethodBase {
15 public: 14 public:
16 explicit InputMethodMinimal(internal::InputMethodDelegate* delegate); 15 explicit InputMethodAndroid(internal::InputMethodDelegate* delegate);
17 ~InputMethodMinimal() override; 16 ~InputMethodAndroid() override;
18 17
18 private:
19 // Overriden from InputMethod. 19 // Overriden from InputMethod.
20 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 20 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
21 NativeEventResult* result) override; 21 NativeEventResult* result) override;
22 void DispatchKeyEvent(ui::KeyEvent* event) override; 22 void DispatchKeyEvent(ui::KeyEvent* event) override;
23 void OnCaretBoundsChanged(const TextInputClient* client) override; 23 void OnCaretBoundsChanged(const TextInputClient* client) override;
24 void CancelComposition(const TextInputClient* client) override; 24 void CancelComposition(const TextInputClient* client) override;
25 void OnInputLocaleChanged() override; 25 void OnInputLocaleChanged() override;
26 std::string GetInputLocale() override; 26 std::string GetInputLocale() override;
27 bool IsCandidatePopupOpen() const override; 27 bool IsCandidatePopupOpen() const override;
28 28
29 private: 29 DISALLOW_COPY_AND_ASSIGN(InputMethodAndroid);
30 DISALLOW_COPY_AND_ASSIGN(InputMethodMinimal);
31 }; 30 };
32 31
33 } // namespace ui 32 } // namespace ui
34 33
35 #endif // UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ 34 #endif // UI_BASE_IME_INPUT_METHOD_ANDROID_H_
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698