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

Unified Diff: ui/views/widget/desktop_aura/desktop_focus_rules.cc

Issue 2669303005: desktop-views: Create one fewer aura::Window for each widget. (Closed)
Patch Set: . Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_focus_rules.cc
diff --git a/ui/views/widget/desktop_aura/desktop_focus_rules.cc b/ui/views/widget/desktop_aura/desktop_focus_rules.cc
index 1d7d40c5e3dc133ac13b6ed3628f72ea95a17d30..9f4c1bd8f40af09b83f494d4e7d776462840abdc 100644
--- a/ui/views/widget/desktop_aura/desktop_focus_rules.cc
+++ b/ui/views/widget/desktop_aura/desktop_focus_rules.cc
@@ -25,8 +25,7 @@ bool DesktopFocusRules::CanActivateWindow(aura::Window* window) const {
bool DesktopFocusRules::SupportsChildActivation(aura::Window* window) const {
// In Desktop-Aura, only the content_window or children of the RootWindow are
// activatable.
- return window == content_window_->parent() ||
- window->GetRootWindow() == window;
+ return window->IsRootWindow();
}
bool DesktopFocusRules::IsWindowConsideredVisibleForActivation(
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698