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

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

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « components/arc/ime/arc_ime_service.h ('k') | components/arc/ime/arc_ime_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « components/arc/ime/arc_ime_service.h ('k') | components/arc/ime/arc_ime_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698