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

Side by Side Diff: ui/base/ime/chromeos/mock_ime_engine_handler.cc

Issue 1590863002: Move the local struct definitions off ui/base/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h" 5 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h"
6 #include "ui/base/ime/text_input_flags.h" 6 #include "ui/base/ime/text_input_flags.h"
7 7
8 namespace chromeos { 8 namespace chromeos {
9 9
10 MockIMEEngineHandler::MockIMEEngineHandler() 10 MockIMEEngineHandler::MockIMEEngineHandler()
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ++set_surrounding_text_call_count_; 69 ++set_surrounding_text_call_count_;
70 last_set_surrounding_text_ = text; 70 last_set_surrounding_text_ = text;
71 last_set_surrounding_cursor_pos_ = cursor_pos; 71 last_set_surrounding_cursor_pos_ = cursor_pos;
72 last_set_surrounding_anchor_pos_ = anchor_pos; 72 last_set_surrounding_anchor_pos_ = anchor_pos;
73 } 73 }
74 74
75 void MockIMEEngineHandler::SetCompositionBounds( 75 void MockIMEEngineHandler::SetCompositionBounds(
76 const std::vector<gfx::Rect>& bounds) { 76 const std::vector<gfx::Rect>& bounds) {
77 } 77 }
78 78
79 bool MockIMEEngineHandler::SetComposition(
80 int context_id,
81 const char* text,
82 int selection_start,
83 int selection_end,
84 int cursor,
85 const std::vector<SegmentInfo>& segments,
86 std::string* error) {
87 return false;
88 }
89
90 bool MockIMEEngineHandler::ClearComposition(int context_id, 79 bool MockIMEEngineHandler::ClearComposition(int context_id,
91 std::string* error) { 80 std::string* error) {
92 return false; 81 return false;
93 } 82 }
94 83
95 bool MockIMEEngineHandler::CommitText(int context_id, 84 bool MockIMEEngineHandler::CommitText(int context_id,
96 const char* text, 85 const char* text,
97 std::string* error) { 86 std::string* error) {
98 return false; 87 return false;
99 } 88 }
100 89
101 bool MockIMEEngineHandler::SendKeyEvents(
102 int context_id,
103 const std::vector<KeyboardEvent>& events) {
104 return false;
105 }
106
107 bool MockIMEEngineHandler::IsActive() const { 90 bool MockIMEEngineHandler::IsActive() const {
108 return false; 91 return false;
109 } 92 }
110 93
111 const std::string& MockIMEEngineHandler::GetActiveComponentId() const { 94 const std::string& MockIMEEngineHandler::GetActiveComponentId() const {
112 return active_component_id_; 95 return active_component_id_;
113 } 96 }
114 97
115 bool MockIMEEngineHandler::DeleteSurroundingText(int context_id, 98 bool MockIMEEngineHandler::DeleteSurroundingText(int context_id,
116 int offset, 99 int offset,
117 size_t number_of_chars, 100 size_t number_of_chars,
118 std::string* error) { 101 std::string* error) {
119 return false; 102 return false;
120 } 103 }
121 104
122 const MockIMEEngineHandler::CandidateWindowProperty&
123 MockIMEEngineHandler::GetCandidateWindowProperty() const {
124 return candidate_window_property_;
125 }
126
127 bool MockIMEEngineHandler::SetCandidateWindowVisible(bool visible, 105 bool MockIMEEngineHandler::SetCandidateWindowVisible(bool visible,
128 std::string* error) { 106 std::string* error) {
129 return false; 107 return false;
130 } 108 }
131 109
132 bool MockIMEEngineHandler::SetCandidates(
133 int context_id,
134 const std::vector<Candidate>& candidates,
135 std::string* error) {
136 return false;
137 }
138
139 bool MockIMEEngineHandler::SetCursorPosition(int context_id, 110 bool MockIMEEngineHandler::SetCursorPosition(int context_id,
140 int candidate_id, 111 int candidate_id,
141 std::string* error) { 112 std::string* error) {
142 return false; 113 return false;
143 } 114 }
144 115
145 bool MockIMEEngineHandler::SetMenuItems(const std::vector<MenuItem>& items) {
146 return false;
147 }
148
149 bool MockIMEEngineHandler::UpdateMenuItems(const std::vector<MenuItem>& items) {
150 return false;
151 }
152
153 } // namespace chromeos 116 } // namespace chromeos
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_engine_handler.h ('k') | ui/base/ime/ime_engine_handler_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698