| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |