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

Side by Side Diff: ui/views/mus/input_method_mus.h

Issue 1402213002: Moves mandoline/ui/aura to ui/views/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable presubmit 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
« no previous file with comments | « ui/views/mus/aura_init.cc ('k') | ui/views/mus/input_method_mus.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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "ui/base/ime/input_method_base.h" 5 #include "ui/base/ime/input_method_base.h"
6 6
7 #ifndef MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ 7 #ifndef UI_VIEWS_MUS_INPUT_METHOD_MUS_H_
8 #define MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ 8 #define UI_VIEWS_MUS_INPUT_METHOD_MUS_H_
9 9
10 namespace mus { 10 namespace mus {
11 class View; 11 class View;
12 } // namespace mojo 12 } // namespace mojo
13 13
14 namespace mandoline { 14 namespace views {
15 15
16 class InputMethodMandoline : public ui::InputMethodBase { 16 class InputMethodMUS : public ui::InputMethodBase {
17 public: 17 public:
18 InputMethodMandoline(ui::internal::InputMethodDelegate* delegate, 18 InputMethodMUS(ui::internal::InputMethodDelegate* delegate, mus::View* view);
19 mus::View* view); 19 ~InputMethodMUS() override;
20 ~InputMethodMandoline() override;
21 20
22 private: 21 private:
23 // Overridden from ui::InputMethod: 22 // Overridden from ui::InputMethod:
24 void OnFocus() override; 23 void OnFocus() override;
25 void OnBlur() override; 24 void OnBlur() override;
26 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 25 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
27 NativeEventResult* result) override; 26 NativeEventResult* result) override;
28 void DispatchKeyEvent(ui::KeyEvent* event) override; 27 void DispatchKeyEvent(ui::KeyEvent* event) override;
29 void OnTextInputTypeChanged(const ui::TextInputClient* client) override; 28 void OnTextInputTypeChanged(const ui::TextInputClient* client) override;
30 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; 29 void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
31 void CancelComposition(const ui::TextInputClient* client) override; 30 void CancelComposition(const ui::TextInputClient* client) override;
32 void OnInputLocaleChanged() override; 31 void OnInputLocaleChanged() override;
33 std::string GetInputLocale() override; 32 std::string GetInputLocale() override;
34 bool IsCandidatePopupOpen() const override; 33 bool IsCandidatePopupOpen() const override;
35 34
36 // Overridden from ui::InputMethodBase: 35 // Overridden from ui::InputMethodBase:
37 void OnDidChangeFocusedClient(ui::TextInputClient* focused_before, 36 void OnDidChangeFocusedClient(ui::TextInputClient* focused_before,
38 ui::TextInputClient* focused) override; 37 ui::TextInputClient* focused) override;
39 38
40 void UpdateTextInputType(); 39 void UpdateTextInputType();
41 40
42 // The toplevel view which is not owned by this class. 41 // The toplevel view which is not owned by this class.
43 mus::View* view_; 42 mus::View* view_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(InputMethodMandoline); 44 DISALLOW_COPY_AND_ASSIGN(InputMethodMUS);
46 }; 45 };
47 46
48 } // namespace mandoline 47 } // namespace views
49 48
50 #endif // MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_ 49 #endif // UI_VIEWS_MUS_INPUT_METHOD_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/aura_init.cc ('k') | ui/views/mus/input_method_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698