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

Unified Diff: ash/wm/system_modal_container_event_filter.cc

Issue 2071423003: Filter all events in SystemModalContainerEventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/system_modal_container_event_filter.cc
diff --git a/ash/wm/system_modal_container_event_filter.cc b/ash/wm/system_modal_container_event_filter.cc
index c8400cfb663fc7c3047d298a415e758f40a58c74..9a3770f484509573710bafb9b1dc16f8757b6a94 100644
--- a/ash/wm/system_modal_container_event_filter.cc
+++ b/ash/wm/system_modal_container_event_filter.cc
@@ -18,14 +18,7 @@ SystemModalContainerEventFilter::SystemModalContainerEventFilter(
SystemModalContainerEventFilter::~SystemModalContainerEventFilter() {
}
-void SystemModalContainerEventFilter::OnKeyEvent(ui::KeyEvent* event) {
- aura::Window* target = static_cast<aura::Window*>(event->target());
- if (!delegate_->CanWindowReceiveEvents(target))
- event->StopPropagation();
-}
-
-void SystemModalContainerEventFilter::OnMouseEvent(
- ui::MouseEvent* event) {
+void SystemModalContainerEventFilter::OnEvent(ui::Event* event) {
aura::Window* target = static_cast<aura::Window*>(event->target());
if (!delegate_->CanWindowReceiveEvents(target))
event->StopPropagation();
« no previous file with comments | « ash/wm/system_modal_container_event_filter.h ('k') | ash/wm/system_modal_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698