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

Side by Side Diff: chrome/browser/ui/ash/ime_driver_ash.h

Issue 2539453002: IME for Mus: Add ui.mojom.CompositionText and its struct traits. (Closed)
Patch Set: cleanup. Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_
6 #define CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_ 6 #define CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
14 #include "services/ui/public/interfaces/ime.mojom.h" 14 #include "services/ui/public/interfaces/ime/ime.mojom.h"
15 15
16 class IMEDriver : public ui::mojom::IMEDriver { 16 class IMEDriver : public ui::mojom::IMEDriver {
17 public: 17 public:
18 IMEDriver(); 18 IMEDriver();
19 ~IMEDriver() override; 19 ~IMEDriver() override;
20 20
21 private: 21 private:
22 // ui::mojom::IMEDriver: 22 // ui::mojom::IMEDriver:
23 void StartSession( 23 void StartSession(
24 int32_t session_id, 24 int32_t session_id,
25 ui::mojom::TextInputClientPtr client, 25 ui::mojom::TextInputClientPtr client,
26 ui::mojom::InputMethodRequest input_method_request) override; 26 ui::mojom::InputMethodRequest input_method_request) override;
27 void CancelSession(int32_t session_id) override; 27 void CancelSession(int32_t session_id) override;
28 28
29 std::map<int32_t, std::unique_ptr<mojo::Binding<ui::mojom::InputMethod>>> 29 std::map<int32_t, std::unique_ptr<mojo::Binding<ui::mojom::InputMethod>>>
30 input_method_bindings_; 30 input_method_bindings_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(IMEDriver); 32 DISALLOW_COPY_AND_ASSIGN(IMEDriver);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_ 35 #endif // CHROME_BROWSER_UI_ASH_IME_DRIVER_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/ash/ime_driver_ash.cc » ('j') | services/ui/public/interfaces/ime/ime.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698