| 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_H_ | 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ |
| 6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ | 6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_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 "ui/base/ime/text_input_type.h" | 10 #include "ui/base/ime/text_input_type.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual void OnCancelComposition() = 0; | 33 virtual void OnCancelComposition() = 0; |
| 34 virtual void ShowImeIfNeeded() = 0; | 34 virtual void ShowImeIfNeeded() = 0; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // Serializes and sends IME related requests through IPCs. | 37 // Serializes and sends IME related requests through IPCs. |
| 38 virtual void SendSetCompositionText( | 38 virtual void SendSetCompositionText( |
| 39 const ui::CompositionText& composition) = 0; | 39 const ui::CompositionText& composition) = 0; |
| 40 virtual void SendConfirmCompositionText() = 0; | 40 virtual void SendConfirmCompositionText() = 0; |
| 41 virtual void SendInsertText(const base::string16& text) = 0; | 41 virtual void SendInsertText(const base::string16& text) = 0; |
| 42 virtual void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) = 0; | 42 virtual void SendOnKeyboardBoundsChanging(const gfx::Rect& new_bounds) = 0; |
| 43 virtual void SendExtendSelectionAndDelete( |
| 44 uint32_t before, uint32_t after) = 0; |
| 43 | 45 |
| 44 protected: | 46 protected: |
| 45 ArcImeBridge() {} | 47 ArcImeBridge() {} |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(ArcImeBridge); | 50 DISALLOW_COPY_AND_ASSIGN(ArcImeBridge); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace arc | 53 } // namespace arc |
| 52 | 54 |
| 53 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ | 55 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ |
| OLD | NEW |