| OLD | NEW |
| 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 { | |
| 15 | 14 |
| 16 EventClientImpl::EventClientImpl() { | 15 EventClientImpl::EventClientImpl() { |
| 17 } | 16 } |
| 18 | 17 |
| 19 EventClientImpl::~EventClientImpl() { | 18 EventClientImpl::~EventClientImpl() { |
| 20 } | 19 } |
| 21 | 20 |
| 22 bool EventClientImpl::CanProcessEventsWithinSubtree( | 21 bool EventClientImpl::CanProcessEventsWithinSubtree( |
| 23 const aura::Window* window) const { | 22 const aura::Window* window) const { |
| 24 const aura::Window* root_window = window ? window->GetRootWindow() : NULL; | 23 const aura::Window* root_window = window ? window->GetRootWindow() : NULL; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 can_process_events |= (window->Contains(virtual_keyboard_container) || | 48 can_process_events |= (window->Contains(virtual_keyboard_container) || |
| 50 virtual_keyboard_container->Contains(window)); | 49 virtual_keyboard_container->Contains(window)); |
| 51 } | 50 } |
| 52 return can_process_events; | 51 return can_process_events; |
| 53 } | 52 } |
| 54 | 53 |
| 55 ui::EventTarget* EventClientImpl::GetToplevelEventTarget() { | 54 ui::EventTarget* EventClientImpl::GetToplevelEventTarget() { |
| 56 return Shell::GetInstance(); | 55 return Shell::GetInstance(); |
| 57 } | 56 } |
| 58 | 57 |
| 59 } // namespace internal | |
| 60 } // namespace ash | 58 } // namespace ash |
| OLD | NEW |