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

Side by Side Diff: ui/base/ime/chromeos/mock_ime_input_context_handler.h

Issue 2077783002: Make limitations for input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blacklist extension window. 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_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_
6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ 6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ui/base/ime/composition_text.h" 10 #include "ui/base/ime/composition_text.h"
(...skipping 18 matching lines...) Expand all
29 29
30 MockIMEInputContextHandler(); 30 MockIMEInputContextHandler();
31 virtual ~MockIMEInputContextHandler(); 31 virtual ~MockIMEInputContextHandler();
32 32
33 void CommitText(const std::string& text) override; 33 void CommitText(const std::string& text) override;
34 void UpdateCompositionText(const ui::CompositionText& text, 34 void UpdateCompositionText(const ui::CompositionText& text,
35 uint32_t cursor_pos, 35 uint32_t cursor_pos,
36 bool visible) override; 36 bool visible) override;
37 void DeleteSurroundingText(int32_t offset, uint32_t length) override; 37 void DeleteSurroundingText(int32_t offset, uint32_t length) override;
38 void SendKeyEvent(ui::KeyEvent* event) override; 38 void SendKeyEvent(ui::KeyEvent* event) override;
39 InputMethod* GetInputMethod() override { return nullptr; }
39 40
40 int commit_text_call_count() const { return commit_text_call_count_; } 41 int commit_text_call_count() const { return commit_text_call_count_; }
41 42
42 int update_preedit_text_call_count() const { 43 int update_preedit_text_call_count() const {
43 return update_preedit_text_call_count_; 44 return update_preedit_text_call_count_;
44 } 45 }
45 46
46 int delete_surrounding_text_call_count() const { 47 int delete_surrounding_text_call_count() const {
47 return delete_surrounding_text_call_count_; 48 return delete_surrounding_text_call_count_;
48 } 49 }
(...skipping 18 matching lines...) Expand all
67 int update_preedit_text_call_count_; 68 int update_preedit_text_call_count_;
68 int delete_surrounding_text_call_count_; 69 int delete_surrounding_text_call_count_;
69 std::string last_commit_text_; 70 std::string last_commit_text_;
70 UpdateCompositionTextArg last_update_composition_arg_; 71 UpdateCompositionTextArg last_update_composition_arg_;
71 DeleteSurroundingTextArg last_delete_surrounding_text_arg_; 72 DeleteSurroundingTextArg last_delete_surrounding_text_arg_;
72 }; 73 };
73 74
74 } // namespace chromeos 75 } // namespace chromeos
75 76
76 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ 77 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698