| Index: ui/views/widget/desktop_aura/desktop_focus_rules.cc
|
| ===================================================================
|
| --- ui/views/widget/desktop_aura/desktop_focus_rules.cc (revision 256070)
|
| +++ ui/views/widget/desktop_aura/desktop_focus_rules.cc (working copy)
|
| @@ -14,14 +14,6 @@
|
|
|
| DesktopFocusRules::~DesktopFocusRules() {}
|
|
|
| -bool DesktopFocusRules::CanActivateWindow(aura::Window* window) const {
|
| - if (!BaseFocusRules::CanActivateWindow(window))
|
| - return false;
|
| - // Never activate a window that is not a child of the root window. Transients
|
| - // spanning different DesktopNativeWidgetAuras may trigger this.
|
| - return !window || content_window_->GetRootWindow()->Contains(window);
|
| -}
|
| -
|
| bool DesktopFocusRules::SupportsChildActivation(aura::Window* window) const {
|
| // In Desktop-Aura, only the content_window or children of the RootWindow are
|
| // activatable.
|
|
|