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

Unified Diff: ash/wm/event_client_impl.cc

Issue 9788001: Remove stops_event_propagation from Window, since it's broken. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/event_client_impl.cc
===================================================================
--- ash/wm/event_client_impl.cc (revision 0)
+++ ash/wm/event_client_impl.cc (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/wm/event_client_impl.h"
+
+#include "ash/shell.h"
+#include "ash/shell_window_ids.h"
+#include "ui/aura/root_window.h"
+#include "ui/aura/window.h"
+
+namespace ash {
+namespace internal {
+
+EventClientImpl::EventClientImpl(aura::RootWindow* root_window)
+ : root_window_(root_window) {
+ aura::client::SetEventClient(root_window_, this);
+}
+
+EventClientImpl::~EventClientImpl() {
+ aura::client::SetEventClient(root_window_, NULL);
+}
+
+bool EventClientImpl::CanProcessEventsWithinSubtree(
+ const aura::Window* window) const {
+ if (Shell::GetInstance()->IsScreenLocked()) {
+ aura::Window* lock_screen_containers =
+ Shell::GetInstance()->GetContainer(
+ kShellWindowId_LockScreenContainersContainer);
+ aura::Window* lock_screen_related_containers =
+ Shell::GetInstance()->GetContainer(
+ kShellWindowId_LockScreenRelatedContainersContainer);
+ return lock_screen_containers->Contains(window) ||
+ lock_screen_related_containers->Contains(window);
+ }
+ return true;
+}
+
+} // namespace internal
+} // namespace ash
Property changes on: ash\wm\event_client_impl.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698