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

Side by Side Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ash/host/ash_window_tree_host_unified.h" 5 #include "ash/host/ash_window_tree_host_unified.h"
6 #include "ash/host/root_window_transformer.h" 6 #include "ash/host/root_window_transformer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/aura/window_targeter.h" 10 #include "ui/aura/window_targeter.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 auto iter = 174 auto iter =
175 std::find_if(mirroring_hosts_.begin(), mirroring_hosts_.end(), 175 std::find_if(mirroring_hosts_.begin(), mirroring_hosts_.end(),
176 [window](AshWindowTreeHost* ash_host) { 176 [window](AshWindowTreeHost* ash_host) {
177 return ash_host->AsWindowTreeHost()->window() == window; 177 return ash_host->AsWindowTreeHost()->window() == window;
178 }); 178 });
179 DCHECK(iter != mirroring_hosts_.end()); 179 DCHECK(iter != mirroring_hosts_.end());
180 window->RemoveObserver(this); 180 window->RemoveObserver(this);
181 mirroring_hosts_.erase(iter); 181 mirroring_hosts_.erase(iter);
182 } 182 }
183 183
184 ui::EventProcessor* AshWindowTreeHostUnified::GetEventProcessor() {
185 return dispatcher();
186 }
187
188 } // namespace ash 184 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698