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

Side by Side Diff: ash/cancel_mode.cc

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/desktop_background/desktop_background_controller.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/cancel_mode.h" 5 #include "ash/cancel_mode.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 void DispatchCancelMode() { 13 void DispatchCancelMode() {
14 Shell::RootWindowControllerList controllers( 14 Shell::RootWindowControllerList controllers(
15 Shell::GetAllRootWindowControllers()); 15 Shell::GetAllRootWindowControllers());
16 for (Shell::RootWindowControllerList::const_iterator i = controllers.begin(); 16 for (Shell::RootWindowControllerList::const_iterator i = controllers.begin();
17 i != controllers.end(); ++i) { 17 i != controllers.end(); ++i) {
18 (*i)->host()->dispatcher()->DispatchCancelModeEvent(); 18 (*i)->GetHost()->dispatcher()->DispatchCancelModeEvent();
19 } 19 }
20 } 20 }
21 21
22 } // namespace ash 22 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698