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

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

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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/event_client_impl.h" 5 #include "ash/wm/event_client_impl.h"
6 6
7 #include "ash/session_state_delegate.h" 7 #include "ash/session_state_delegate.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_window_ids.h" 9 #include "ash/shell_window_ids.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/keyboard/keyboard_util.h" 11 #include "ui/keyboard/keyboard_util.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace internal { 14 namespace internal {
15 15
16 EventClientImpl::EventClientImpl() { 16 EventClientImpl::EventClientImpl() {
17 } 17 }
18 18
19 EventClientImpl::~EventClientImpl() { 19 EventClientImpl::~EventClientImpl() {
20 } 20 }
21 21
22 bool EventClientImpl::CanProcessEventsWithinSubtree( 22 bool EventClientImpl::CanProcessEventsWithinSubtree(
23 const aura::Window* window) const { 23 const aura::Window* window) const {
24 const aura::RootWindow* root_window = window ? window->GetRootWindow() : NULL; 24 const aura::Window* root_window = window ? window->GetRootWindow() : NULL;
25 if (!root_window || 25 if (!root_window ||
26 !Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked()) { 26 !Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked()) {
27 return true; 27 return true;
28 } 28 }
29 29
30 const aura::Window* lock_screen_containers = Shell::GetContainer( 30 const aura::Window* lock_screen_containers = Shell::GetContainer(
31 root_window, 31 root_window,
32 kShellWindowId_LockScreenContainersContainer); 32 kShellWindowId_LockScreenContainersContainer);
33 const aura::Window* lock_background_containers = Shell::GetContainer( 33 const aura::Window* lock_background_containers = Shell::GetContainer(
34 root_window, 34 root_window,
(...skipping 16 matching lines...) Expand all
51 } 51 }
52 return can_process_events; 52 return can_process_events;
53 } 53 }
54 54
55 ui::EventTarget* EventClientImpl::GetToplevelEventTarget() { 55 ui::EventTarget* EventClientImpl::GetToplevelEventTarget() {
56 return Shell::GetInstance(); 56 return Shell::GetInstance();
57 } 57 }
58 58
59 } // namespace internal 59 } // namespace internal
60 } // namespace ash 60 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698