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

Side by Side Diff: components/arc/ime/arc_ime_bridge_impl.h

Issue 2136933002: Add ime.ExtendSelectionAndDelete Mojo RPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ime.ExtendSelectionAndDelete Mojo RPC Created 4 years, 5 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 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 COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "components/arc/arc_bridge_service.h" 10 #include "components/arc/arc_bridge_service.h"
(...skipping 19 matching lines...) Expand all
30 ~ArcImeBridgeImpl() override; 30 ~ArcImeBridgeImpl() override;
31 31
32 // arc::ArcBridgeService::Observer overrides: 32 // arc::ArcBridgeService::Observer overrides:
33 void OnImeInstanceReady() override; 33 void OnImeInstanceReady() override;
34 34
35 // ArcImeBridge overrides: 35 // ArcImeBridge overrides:
36 void SendSetCompositionText(const ui::CompositionText& composition) override; 36 void SendSetCompositionText(const ui::CompositionText& composition) override;
37 void SendConfirmCompositionText() override; 37 void SendConfirmCompositionText() override;
38 void SendInsertText(const base::string16& text) override; 38 void SendInsertText(const base::string16& text) override;
39 void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 39 void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
40 void SendExtendSelectionAndDelete(uint32_t before, uint32_t after) override;
40 41
41 // arc::mojom::ImeHost overrides: 42 // arc::mojom::ImeHost overrides:
42 void OnTextInputTypeChanged(arc::mojom::TextInputType type) override; 43 void OnTextInputTypeChanged(arc::mojom::TextInputType type) override;
43 void OnCursorRectChanged(arc::mojom::CursorRectPtr rect) override; 44 void OnCursorRectChanged(arc::mojom::CursorRectPtr rect) override;
44 void OnCancelComposition() override; 45 void OnCancelComposition() override;
45 void ShowImeIfNeeded() override; 46 void ShowImeIfNeeded() override;
46 47
47 private: 48 private:
48 mojo::Binding<mojom::ImeHost> binding_; 49 mojo::Binding<mojom::ImeHost> binding_;
49 Delegate* const delegate_; 50 Delegate* const delegate_;
50 ArcBridgeService* const bridge_service_; 51 ArcBridgeService* const bridge_service_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl); 53 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl);
53 }; 54 };
54 55
55 } // namespace arc 56 } // namespace arc
56 57
57 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 58 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698