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

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

Issue 2029733003: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (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
« no previous file with comments | « ui/base/ime/BUILD.gn ('k') | ui/base/ime/dummy_text_input_client.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 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 29 matching lines...) Expand all
40 bool GetSelectionRange(gfx::Range* range) const override; 40 bool GetSelectionRange(gfx::Range* range) const override;
41 bool SetSelectionRange(const gfx::Range& range) override; 41 bool SetSelectionRange(const gfx::Range& range) override;
42 bool DeleteRange(const gfx::Range& range) override; 42 bool DeleteRange(const gfx::Range& range) override;
43 bool GetTextFromRange(const gfx::Range& range, 43 bool GetTextFromRange(const gfx::Range& range,
44 base::string16* text) const override; 44 base::string16* text) const override;
45 void OnInputMethodChanged() override; 45 void OnInputMethodChanged() override;
46 bool ChangeTextDirectionAndLayoutAlignment( 46 bool ChangeTextDirectionAndLayoutAlignment(
47 base::i18n::TextDirection direction) override; 47 base::i18n::TextDirection direction) override;
48 void ExtendSelectionAndDelete(size_t before, size_t after) override; 48 void ExtendSelectionAndDelete(size_t before, size_t after) override;
49 void EnsureCaretInRect(const gfx::Rect& rect) override; 49 void EnsureCaretInRect(const gfx::Rect& rect) override;
50 bool IsEditCommandEnabled(int command_id) const override; 50 bool IsTextEditCommandEnabled(TextEditCommand command) const override;
51 void SetEditCommandForNextKeyEvent(int command_id) override; 51 void SetTextEditCommandForNextKeyEvent(TextEditCommand command) override;
52 52
53 int insert_char_count() const { return insert_char_count_; } 53 int insert_char_count() const { return insert_char_count_; }
54 base::char16 last_insert_char() const { return last_insert_char_; } 54 base::char16 last_insert_char() const { return last_insert_char_; }
55 55
56 TextInputType text_input_type_; 56 TextInputType text_input_type_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); 58 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
59 59
60 private: 60 private:
61 int insert_char_count_; 61 int insert_char_count_;
62 base::char16 last_insert_char_; 62 base::char16 last_insert_char_;
63 }; 63 };
64 64
65 } // namespace ui 65 } // namespace ui
66 66
67 #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 | « ui/base/ime/BUILD.gn ('k') | ui/base/ime/dummy_text_input_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698