summaryrefslogtreecommitdiffstats
path: root/ash/wm/event_client_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/event_client_impl.cc')
-rw-r--r--ash/wm/event_client_impl.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/ash/wm/event_client_impl.cc b/ash/wm/event_client_impl.cc
deleted file mode 100644
index 58b4385..0000000
--- a/ash/wm/event_client_impl.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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