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

Side by Side Diff: ash/wm/system_modal_container_event_filter.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/wm/system_modal_container_event_filter.h" 5 #include "ash/wm/system_modal_container_event_filter.h"
6 6
7 #include "ash/wm/system_modal_container_event_filter_delegate.h" 7 #include "ash/wm/system_modal_container_event_filter_delegate.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 SystemModalContainerEventFilter::SystemModalContainerEventFilter( 13 SystemModalContainerEventFilter::SystemModalContainerEventFilter(
14 SystemModalContainerEventFilterDelegate* delegate) 14 SystemModalContainerEventFilterDelegate* delegate)
15 : delegate_(delegate) { 15 : delegate_(delegate) {}
16 }
17 16
18 SystemModalContainerEventFilter::~SystemModalContainerEventFilter() { 17 SystemModalContainerEventFilter::~SystemModalContainerEventFilter() {}
19 }
20 18
21 void SystemModalContainerEventFilter::OnEvent(ui::Event* event) { 19 void SystemModalContainerEventFilter::OnEvent(ui::Event* event) {
22 aura::Window* target = static_cast<aura::Window*>(event->target()); 20 aura::Window* target = static_cast<aura::Window*>(event->target());
23 if (!delegate_->CanWindowReceiveEvents(target)) 21 if (!delegate_->CanWindowReceiveEvents(target))
24 event->StopPropagation(); 22 event->StopPropagation();
25 } 23 }
26 24
27 } // namespace ash 25 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698