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

Side by Side Diff: ui/base/ime/dummy_text_input_client.h

Issue 2024003002: Add GetTextDirection to ui::TextInputClient API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 5 #ifndef UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 ~DummyTextInputClient() override; 21 ~DummyTextInputClient() override;
22 22
23 // Overriden from TextInputClient. 23 // Overriden from TextInputClient.
24 void SetCompositionText(const CompositionText& composition) override; 24 void SetCompositionText(const CompositionText& composition) override;
25 void ConfirmCompositionText() override; 25 void ConfirmCompositionText() override;
26 void ClearCompositionText() override; 26 void ClearCompositionText() override;
27 void InsertText(const base::string16& text) override; 27 void InsertText(const base::string16& text) override;
28 void InsertChar(const KeyEvent& event) override; 28 void InsertChar(const KeyEvent& event) override;
29 TextInputType GetTextInputType() const override; 29 TextInputType GetTextInputType() const override;
30 TextInputMode GetTextInputMode() const override; 30 TextInputMode GetTextInputMode() const override;
31 base::i18n::TextDirection GetTextDirection() const override;
31 int GetTextInputFlags() const override; 32 int GetTextInputFlags() const override;
32 bool CanComposeInline() const override; 33 bool CanComposeInline() const override;
33 gfx::Rect GetCaretBounds() const override; 34 gfx::Rect GetCaretBounds() const override;
34 bool GetCompositionCharacterBounds(uint32_t index, 35 bool GetCompositionCharacterBounds(uint32_t index,
35 gfx::Rect* rect) const override; 36 gfx::Rect* rect) const override;
36 bool HasCompositionText() const override; 37 bool HasCompositionText() const override;
37 bool GetTextRange(gfx::Range* range) const override; 38 bool GetTextRange(gfx::Range* range) const override;
38 bool GetCompositionTextRange(gfx::Range* range) const override; 39 bool GetCompositionTextRange(gfx::Range* range) const override;
39 bool GetSelectionRange(gfx::Range* range) const override; 40 bool GetSelectionRange(gfx::Range* range) const override;
40 bool SetSelectionRange(const gfx::Range& range) override; 41 bool SetSelectionRange(const gfx::Range& range) override;
(...skipping 16 matching lines...) Expand all
57 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); 58 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
58 59
59 private: 60 private:
60 int insert_char_count_; 61 int insert_char_count_;
61 base::char16 last_insert_char_; 62 base::char16 last_insert_char_;
62 }; 63 };
63 64
64 } // namespace ui 65 } // namespace ui
65 66
66 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 67 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/base/ime/dummy_text_input_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698