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

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

Issue 2876693004: Implement GetTextFromRange(), GetTextRange() and GetSelectionRange() for ArcImeService. (Closed)
Patch Set: add TODOs in ime.mojom Created 3 years, 7 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 | « components/arc/ime/arc_ime_bridge.h ('k') | components/arc/ime/arc_ime_bridge_impl.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 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 25 matching lines...) Expand all
36 36
37 // ArcImeBridge overrides: 37 // ArcImeBridge overrides:
38 void SendSetCompositionText(const ui::CompositionText& composition) override; 38 void SendSetCompositionText(const ui::CompositionText& composition) override;
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(gfx::Rect rect) override;
47 void OnCancelComposition() override; 47 void OnCancelComposition() override;
48 void ShowImeIfNeeded() override; 48 void ShowImeIfNeeded() override;
49 void OnCursorRectChangedWithSurroundingText(
50 gfx::Rect rect,
51 gfx::Range text_range,
52 const std::string& text_in_range,
53 gfx::Range 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_
OLDNEW
« no previous file with comments | « components/arc/ime/arc_ime_bridge.h ('k') | components/arc/ime/arc_ime_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698