forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_method_mus.h
52 lines (39 loc) · 1.63 KB
/
input_method_mus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/ime/input_method_base.h"
#ifndef UI_VIEWS_MUS_INPUT_METHOD_MUS_H_
#define UI_VIEWS_MUS_INPUT_METHOD_MUS_H_
#include "ui/views/mus/mus_export.h"
namespace mus {
class Window;
} // namespace mojo
namespace views {
class VIEWS_MUS_EXPORT InputMethodMUS : public ui::InputMethodBase {
public:
InputMethodMUS(ui::internal::InputMethodDelegate* delegate,
mus::Window* window);
~InputMethodMUS() override;
private:
// Overridden from ui::InputMethod:
void OnFocus() override;
void OnBlur() override;
bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
NativeEventResult* result) override;
void DispatchKeyEvent(ui::KeyEvent* event) override;
void OnTextInputTypeChanged(const ui::TextInputClient* client) override;
void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
void CancelComposition(const ui::TextInputClient* client) override;
void OnInputLocaleChanged() override;
std::string GetInputLocale() override;
bool IsCandidatePopupOpen() const override;
// Overridden from ui::InputMethodBase:
void OnDidChangeFocusedClient(ui::TextInputClient* focused_before,
ui::TextInputClient* focused) override;
void UpdateTextInputType();
// The toplevel window which is not owned by this class.
mus::Window* window_;
DISALLOW_COPY_AND_ASSIGN(InputMethodMUS);
};
} // namespace views
#endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_