OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/views/widget/desktop_aura/desktop_focus_rules.h" |
| 6 |
| 7 #include "ui/aura/root_window.h" |
| 8 #include "ui/aura/window.h" |
| 9 |
| 10 namespace views { |
| 11 |
| 12 DesktopFocusRules::DesktopFocusRules() {} |
| 13 DesktopFocusRules::~DesktopFocusRules() {} |
| 14 |
| 15 bool DesktopFocusRules::SupportsChildActivation(aura::Window* window) const { |
| 16 // In Desktop-Aura, only children of the RootWindow are activatable. |
| 17 return window->GetRootWindow() == window; |
| 18 } |
| 19 |
| 20 } // namespace views |
OLD | NEW |