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

Side by Side Diff: components/arc/ime/arc_ime_service.cc

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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/arc/ime/arc_ime_service.h" 5 #include "components/arc/ime/arc_ime_service.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/arc/ime/arc_ime_bridge_impl.h" 8 #include "components/arc/ime/arc_ime_bridge_impl.h"
9 #include "components/exo/shell_surface.h" 9 #include "components/exo/shell_surface.h"
10 #include "components/exo/surface.h" 10 #include "components/exo/surface.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Add the offset of the window showing the ARC app. 228 // Add the offset of the window showing the ARC app.
229 converted.Offset(window->GetBoundsInScreen().OffsetFromOrigin()); 229 converted.Offset(window->GetBoundsInScreen().OffsetFromOrigin());
230 return converted; 230 return converted;
231 } 231 }
232 232
233 ui::TextInputMode ArcImeService::GetTextInputMode() const { 233 ui::TextInputMode ArcImeService::GetTextInputMode() const {
234 return ui::TEXT_INPUT_MODE_DEFAULT; 234 return ui::TEXT_INPUT_MODE_DEFAULT;
235 } 235 }
236 236
237 base::i18n::TextDirection ArcImeService::GetTextDirection() const {
238 return base::i18n::UNKNOWN_DIRECTION;
239 }
240
237 int ArcImeService::GetTextInputFlags() const { 241 int ArcImeService::GetTextInputFlags() const {
238 return ui::TEXT_INPUT_FLAG_NONE; 242 return ui::TEXT_INPUT_FLAG_NONE;
239 } 243 }
240 244
241 bool ArcImeService::CanComposeInline() const { 245 bool ArcImeService::CanComposeInline() const {
242 return true; 246 return true;
243 } 247 }
244 248
245 bool ArcImeService::GetCompositionCharacterBounds( 249 bool ArcImeService::GetCompositionCharacterBounds(
246 uint32_t index, gfx::Rect* rect) const { 250 uint32_t index, gfx::Rect* rect) const {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 bool ArcImeService::ChangeTextDirectionAndLayoutAlignment( 283 bool ArcImeService::ChangeTextDirectionAndLayoutAlignment(
280 base::i18n::TextDirection direction) { 284 base::i18n::TextDirection direction) {
281 return false; 285 return false;
282 } 286 }
283 287
284 bool ArcImeService::IsEditCommandEnabled(int command_id) { 288 bool ArcImeService::IsEditCommandEnabled(int command_id) {
285 return false; 289 return false;
286 } 290 }
287 291
288 } // namespace arc 292 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/ime/arc_ime_service.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698