Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/arc/ime/arc_ime_bridge_impl.h" | 9 #include "components/arc/ime/arc_ime_bridge_impl.h" |
| 10 #include "components/exo/shell_surface.h" | 10 #include "components/exo/shell_surface.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 } | 282 } |
| 283 | 283 |
| 284 ui::TextInputMode ArcImeService::GetTextInputMode() const { | 284 ui::TextInputMode ArcImeService::GetTextInputMode() const { |
| 285 return ui::TEXT_INPUT_MODE_DEFAULT; | 285 return ui::TEXT_INPUT_MODE_DEFAULT; |
| 286 } | 286 } |
| 287 | 287 |
| 288 base::i18n::TextDirection ArcImeService::GetTextDirection() const { | 288 base::i18n::TextDirection ArcImeService::GetTextDirection() const { |
| 289 return base::i18n::UNKNOWN_DIRECTION; | 289 return base::i18n::UNKNOWN_DIRECTION; |
| 290 } | 290 } |
| 291 | 291 |
| 292 void ArcImeService::ExtendSelectionAndDelete(uint32_t before, uint32_t after) { | |
|
hidehiko
2016/07/11 08:09:39
size_t != uint32_t?
takaoka
2016/07/11 08:34:55
Using uint64 for Mojo.
| |
| 293 ime_bridge_->SendExtendSelectionAndDelete(before, after); | |
| 294 } | |
| 295 | |
| 292 int ArcImeService::GetTextInputFlags() const { | 296 int ArcImeService::GetTextInputFlags() const { |
| 293 return ui::TEXT_INPUT_FLAG_NONE; | 297 return ui::TEXT_INPUT_FLAG_NONE; |
| 294 } | 298 } |
| 295 | 299 |
| 296 bool ArcImeService::CanComposeInline() const { | 300 bool ArcImeService::CanComposeInline() const { |
| 297 return true; | 301 return true; |
| 298 } | 302 } |
| 299 | 303 |
| 300 bool ArcImeService::GetCompositionCharacterBounds( | 304 bool ArcImeService::GetCompositionCharacterBounds( |
| 301 uint32_t index, gfx::Rect* rect) const { | 305 uint32_t index, gfx::Rect* rect) const { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 335 base::i18n::TextDirection direction) { | 339 base::i18n::TextDirection direction) { |
| 336 return false; | 340 return false; |
| 337 } | 341 } |
| 338 | 342 |
| 339 bool ArcImeService::IsTextEditCommandEnabled( | 343 bool ArcImeService::IsTextEditCommandEnabled( |
| 340 ui::TextEditCommand command) const { | 344 ui::TextEditCommand command) const { |
| 341 return false; | 345 return false; |
| 342 } | 346 } |
| 343 | 347 |
| 344 } // namespace arc | 348 } // namespace arc |
| OLD | NEW |