| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 for (aura::Window* window : arc_windows_.windows()) | 52 for (aura::Window* window : arc_windows_.windows()) |
| 53 window->RemoveObserver(this); | 53 window->RemoveObserver(this); |
| 54 for (aura::Window* root : observing_root_windows_.windows()) | 54 for (aura::Window* root : observing_root_windows_.windows()) |
| 55 aura::client::GetFocusClient(root)->RemoveObserver(this); | 55 aura::client::GetFocusClient(root)->RemoveObserver(this); |
| 56 aura::Env* env = aura::Env::GetInstanceDontCreate(); | 56 aura::Env* env = aura::Env::GetInstanceDontCreate(); |
| 57 if (env) | 57 if (env) |
| 58 env->RemoveObserver(this); | 58 env->RemoveObserver(this); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void ArcImeService::SetImeBridgeForTesting( | 61 void ArcImeService::SetImeBridgeForTesting( |
| 62 scoped_ptr<ArcImeBridge> test_ime_bridge) { | 62 std::unique_ptr<ArcImeBridge> test_ime_bridge) { |
| 63 ime_bridge_ = std::move(test_ime_bridge); | 63 ime_bridge_ = std::move(test_ime_bridge); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void ArcImeService::SetInputMethodForTesting( | 66 void ArcImeService::SetInputMethodForTesting( |
| 67 ui::InputMethod* test_input_method) { | 67 ui::InputMethod* test_input_method) { |
| 68 test_input_method_ = test_input_method; | 68 test_input_method_ = test_input_method; |
| 69 } | 69 } |
| 70 | 70 |
| 71 ui::InputMethod* ArcImeService::GetInputMethod() { | 71 ui::InputMethod* ArcImeService::GetInputMethod() { |
| 72 if (test_input_method_) | 72 if (test_input_method_) |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 bool ArcImeService::ChangeTextDirectionAndLayoutAlignment( | 273 bool ArcImeService::ChangeTextDirectionAndLayoutAlignment( |
| 274 base::i18n::TextDirection direction) { | 274 base::i18n::TextDirection direction) { |
| 275 return false; | 275 return false; |
| 276 } | 276 } |
| 277 | 277 |
| 278 bool ArcImeService::IsEditCommandEnabled(int command_id) { | 278 bool ArcImeService::IsEditCommandEnabled(int command_id) { |
| 279 return false; | 279 return false; |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace arc | 282 } // namespace arc |
| OLD | NEW |