| 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 CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ |
| 7 | 7 |
| 8 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 8 #include "services/ui/public/interfaces/ime/ime.mojom.h" |
| 9 #include "ui/base/ime/text_input_client.h" | 9 #include "ui/base/ime/text_input_client.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 void SetCompositionText(const ui::CompositionText& composition) override; | 21 void SetCompositionText(const ui::CompositionText& composition) override; |
| 22 void ConfirmCompositionText() override; | 22 void ConfirmCompositionText() override; |
| 23 void ClearCompositionText() override; | 23 void ClearCompositionText() override; |
| 24 void InsertText(const base::string16& text) override; | 24 void InsertText(const base::string16& text) override; |
| 25 void InsertChar(const ui::KeyEvent& event) override; | 25 void InsertChar(const ui::KeyEvent& event) override; |
| 26 ui::TextInputType GetTextInputType() const override; | 26 ui::TextInputType GetTextInputType() const override; |
| 27 ui::TextInputMode GetTextInputMode() const override; | 27 ui::TextInputMode GetTextInputMode() const override; |
| 28 base::i18n::TextDirection GetTextDirection() const override; | 28 base::i18n::TextDirection GetTextDirection() const override; |
| 29 int GetTextInputFlags() const override; | 29 int GetTextInputFlags() const override; |
| 30 bool CanComposeInline() const override; | 30 bool CanComposeInline() const override; |
| 31 float GetScaleFactor() const override; |
| 31 gfx::Rect GetCaretBounds() const override; | 32 gfx::Rect GetCaretBounds() const override; |
| 32 bool GetCompositionCharacterBounds(uint32_t index, | 33 bool GetCompositionCharacterBounds(uint32_t index, |
| 33 gfx::Rect* rect) const override; | 34 gfx::Rect* rect) const override; |
| 34 bool HasCompositionText() const override; | 35 bool HasCompositionText() const override; |
| 35 bool GetTextRange(gfx::Range* range) const override; | 36 bool GetTextRange(gfx::Range* range) const override; |
| 36 bool GetCompositionTextRange(gfx::Range* range) const override; | 37 bool GetCompositionTextRange(gfx::Range* range) const override; |
| 37 bool GetSelectionRange(gfx::Range* range) const override; | 38 bool GetSelectionRange(gfx::Range* range) const override; |
| 38 bool SetSelectionRange(const gfx::Range& range) override; | 39 bool SetSelectionRange(const gfx::Range& range) override; |
| 39 bool DeleteRange(const gfx::Range& range) override; | 40 bool DeleteRange(const gfx::Range& range) override; |
| 40 bool GetTextFromRange(const gfx::Range& range, | 41 bool GetTextFromRange(const gfx::Range& range, |
| 41 base::string16* text) const override; | 42 base::string16* text) const override; |
| 42 void OnInputMethodChanged() override; | 43 void OnInputMethodChanged() override; |
| 43 bool ChangeTextDirectionAndLayoutAlignment( | 44 bool ChangeTextDirectionAndLayoutAlignment( |
| 44 base::i18n::TextDirection direction) override; | 45 base::i18n::TextDirection direction) override; |
| 45 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 46 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
| 46 void EnsureCaretNotInRect(const gfx::Rect& rect) override; | 47 void EnsureCaretNotInRect(const gfx::Rect& rect) override; |
| 47 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; | 48 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; |
| 48 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; | 49 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override; |
| 49 | 50 |
| 50 ui::mojom::TextInputClientPtr remote_client_; | 51 ui::mojom::TextInputClientPtr remote_client_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(RemoteTextInputClient); | 53 DISALLOW_COPY_AND_ASSIGN(RemoteTextInputClient); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 #endif // CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ | 56 #endif // CHROME_BROWSER_UI_VIEWS_IME_DRIVER_REMOTE_TEXT_INPUT_CLIENT_H_ |
| OLD | NEW |