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

Unified Diff: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 291013003: Revert 271468 "Revert of [Refactor] Consolidate the logic for wh..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
Index: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (revision 271508)
+++ trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (working copy)
@@ -95,7 +95,9 @@
init_params.bounds = bounds;
init_params.ownership = Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET;
init_params.layer_type = aura::WINDOW_LAYER_NOT_DRAWN;
- init_params.can_activate = full_screen;
+ init_params.activatable = full_screen ?
+ Widget::InitParams::ACTIVATABLE_YES :
+ Widget::InitParams::ACTIVATABLE_NO;
init_params.keep_on_top = root_is_always_on_top;
// This widget instance will get deleted when the window is
@@ -251,7 +253,6 @@
: desktop_window_tree_host_(NULL),
ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET),
close_widget_factory_(this),
- can_activate_(true),
content_window_container_(NULL),
content_window_(new aura::Window(this)),
native_widget_delegate_(delegate),
@@ -1051,7 +1052,7 @@
// DesktopNativeWidgetAura, aura::client::ActivationDelegate implementation:
bool DesktopNativeWidgetAura::ShouldActivate() const {
- return can_activate_ && native_widget_delegate_->CanActivate();
+ return native_widget_delegate_->CanActivate();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | trunk/src/ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698