OLD | NEW |
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/common/ime.mojom.h" | 10 #include "components/arc/common/ime.mojom.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 void SendConfirmCompositionText() override; | 39 void SendConfirmCompositionText() override; |
40 void SendInsertText(const base::string16& text) override; | 40 void SendInsertText(const base::string16& text) override; |
41 void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 41 void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
42 void SendExtendSelectionAndDelete(size_t before, size_t after) override; | 42 void SendExtendSelectionAndDelete(size_t before, size_t after) override; |
43 | 43 |
44 // mojom::ImeHost overrides: | 44 // mojom::ImeHost overrides: |
45 void OnTextInputTypeChanged(mojom::TextInputType type) override; | 45 void OnTextInputTypeChanged(mojom::TextInputType type) override; |
46 void OnCursorRectChanged(mojom::CursorRectPtr rect) override; | 46 void OnCursorRectChanged(mojom::CursorRectPtr rect) override; |
47 void OnCancelComposition() override; | 47 void OnCancelComposition() override; |
48 void ShowImeIfNeeded() override; | 48 void ShowImeIfNeeded() override; |
| 49 void OnCursorRectChangedWithSurroundingText( |
| 50 mojom::CursorRectPtr rect, |
| 51 mojom::TextRangePtr text_range, |
| 52 const std::string& text_in_range, |
| 53 mojom::TextRangePtr selection_range) override; |
49 | 54 |
50 private: | 55 private: |
51 mojo::Binding<mojom::ImeHost> binding_; | 56 mojo::Binding<mojom::ImeHost> binding_; |
52 Delegate* const delegate_; | 57 Delegate* const delegate_; |
53 ArcBridgeService* const bridge_service_; | 58 ArcBridgeService* const bridge_service_; |
54 | 59 |
55 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl); | 60 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl); |
56 }; | 61 }; |
57 | 62 |
58 } // namespace arc | 63 } // namespace arc |
59 | 64 |
60 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ | 65 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ |
OLD | NEW |