Add new PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0 pepper interface.
[chromium-blink-merge.git] / ash / cancel_mode.cc
blob9d5456da6a340e68fe083d01159a3b8166bf5011
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
3 // found in the LICENSE file.
5 #include "ash/cancel_mode.h"
7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h"
9 #include "ui/aura/window_event_dispatcher.h"
11 namespace ash {
13 void DispatchCancelMode() {
14 Shell::RootWindowControllerList controllers(
15 Shell::GetAllRootWindowControllers());
16 for (Shell::RootWindowControllerList::const_iterator i = controllers.begin();
17 i != controllers.end(); ++i) {
18 (*i)->host()->dispatcher()->AsWindowTreeHostDelegate()->OnHostCancelMode();
22 } // namespace ash