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

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

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update mash_browser_tests_manifest. Created 4 years, 3 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/text_input_client_impl.cc ('k') | ui/views/mus/window_tree_host_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 2015 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_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "services/shell/public/cpp/connector.h"
9 #include "ui/aura/window_tree_host_platform.h" 10 #include "ui/aura/window_tree_host_platform.h"
10 #include "ui/views/mus/mus_export.h" 11 #include "ui/views/mus/mus_export.h"
11 12
12 class SkBitmap; 13 class SkBitmap;
13 14
14 namespace ui { 15 namespace ui {
15 class Window; 16 class Window;
16 } 17 }
17 18
18 namespace shell { 19 namespace shell {
19 class Connector; 20 class Connector;
20 } 21 }
21 22
22 namespace views { 23 namespace views {
23 24
24 class InputMethodMUS; 25 class InputMethodMus;
25 class NativeWidgetMus; 26 class NativeWidgetMus;
26 class PlatformWindowMus; 27 class PlatformWindowMus;
27 28
28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { 29 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
29 public: 30 public:
30 WindowTreeHostMus(NativeWidgetMus* native_widget, ui::Window* window); 31 WindowTreeHostMus(NativeWidgetMus* native_widget, ui::Window* window);
31 ~WindowTreeHostMus() override; 32 ~WindowTreeHostMus() override;
32 NativeWidgetMus* native_widget() { return native_widget_; } 33 NativeWidgetMus* native_widget() { return native_widget_; }
33 34
35 void InitInputMethod(shell::Connector* connector);
36
34 private: 37 private:
35 // aura::WindowTreeHostPlatform: 38 // aura::WindowTreeHostPlatform:
36 void DispatchEvent(ui::Event* event) override; 39 void DispatchEvent(ui::Event* event) override;
37 void OnClosed() override; 40 void OnClosed() override;
38 void OnActivationChanged(bool active) override; 41 void OnActivationChanged(bool active) override;
39 void OnCloseRequest() override; 42 void OnCloseRequest() override;
40 43
41 NativeWidgetMus* native_widget_; 44 NativeWidgetMus* native_widget_;
42 std::unique_ptr<InputMethodMUS> input_method_; 45 std::unique_ptr<InputMethodMus> input_method_;
43 46
44 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 47 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
45 }; 48 };
46 49
47 } // namespace views 50 } // namespace views
48 51
49 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 52 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/text_input_client_impl.cc ('k') | ui/views/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698