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

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

Issue 1805423002: Revert of Add tests for input.ime.* APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void OnInputMethodChanged() override; 44 void OnInputMethodChanged() override;
45 bool ChangeTextDirectionAndLayoutAlignment( 45 bool ChangeTextDirectionAndLayoutAlignment(
46 base::i18n::TextDirection direction) override; 46 base::i18n::TextDirection direction) override;
47 void ExtendSelectionAndDelete(size_t before, size_t after) override; 47 void ExtendSelectionAndDelete(size_t before, size_t after) override;
48 void EnsureCaretInRect(const gfx::Rect& rect) override; 48 void EnsureCaretInRect(const gfx::Rect& rect) override;
49 bool IsEditCommandEnabled(int command_id) override; 49 bool IsEditCommandEnabled(int command_id) override;
50 void SetEditCommandForNextKeyEvent(int command_id) override; 50 void SetEditCommandForNextKeyEvent(int command_id) override;
51 51
52 int insert_char_count() const { return insert_char_count_; } 52 int insert_char_count() const { return insert_char_count_; }
53 base::char16 last_insert_char() const { return last_insert_char_; } 53 base::char16 last_insert_char() const { return last_insert_char_; }
54 int insert_text_count() const { return insert_text_count_; }
55 base::string16 last_insert_text() const { return last_insert_text_; }
56 54
57 TextInputType text_input_type_; 55 TextInputType text_input_type_;
58 56
59 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); 57 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient);
60 58
61 private: 59 private:
62 int insert_char_count_; 60 int insert_char_count_;
63 int insert_text_count_;
64 base::char16 last_insert_char_; 61 base::char16 last_insert_char_;
65 base::string16 last_insert_text_;
66 }; 62 };
67 63
68 } // namespace ui 64 } // namespace ui
69 65
70 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ 66 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js ('k') | ui/base/ime/dummy_text_input_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698