cancel_mode.cc 653 B

12345678910111213141516171819202122
  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.
  4. #include "ash/cancel_mode.h"
  5. #include "ash/root_window_controller.h"
  6. #include "ash/shell.h"
  7. #include "ui/aura/window_event_dispatcher.h"
  8. namespace ash {
  9. void DispatchCancelMode() {
  10. Shell::RootWindowControllerList controllers(
  11. Shell::GetAllRootWindowControllers());
  12. for (Shell::RootWindowControllerList::const_iterator i = controllers.begin();
  13. i != controllers.end(); ++i) {
  14. (*i)->GetHost()->dispatcher()->DispatchCancelModeEvent();
  15. }
  16. }
  17. } // namespace ash