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

Unified Diff: ash/mus/non_client_frame_controller.cc

Issue 2613793002: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: move WmWindowAuraTestApi to ash/test Created 3 years, 11 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 | « ash/mus/bridge/wm_window_mus_test_api.cc ('k') | ash/mus/test/wm_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/non_client_frame_controller.cc
diff --git a/ash/mus/non_client_frame_controller.cc b/ash/mus/non_client_frame_controller.cc
index af31cec668f1e3fab2c70b25155205c8873bdd82..58cdbf84ec832a8297e24adeaabc810a233da2a1 100644
--- a/ash/mus/non_client_frame_controller.cc
+++ b/ash/mus/non_client_frame_controller.cc
@@ -23,6 +23,7 @@
#include "ash/mus/window_manager.h"
#include "ash/mus/window_properties.h"
#include "ash/shared/immersive_fullscreen_controller_delegate.h"
+#include "ash/wm/window_properties.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -307,8 +308,7 @@ NonClientFrameController::NonClientFrameController(
widget_, window_manager_client_, ShouldRemoveStandardFrame(*properties),
ShouldEnableImmersive(*properties));
window_ = native_widget->GetNativeView();
- WmWindowMus* wm_window = WmWindowMus::Get(window_);
- wm_window->set_widget(widget_, WmWindowMus::WidgetCreationType::FOR_CLIENT);
+ window_->SetProperty(kWidgetCreationTypeKey, WidgetCreationType::FOR_CLIENT);
window_->AddObserver(this);
params.native_widget = native_widget;
aura::SetWindowType(window_, window_type);
@@ -329,6 +329,7 @@ NonClientFrameController::NonClientFrameController(
const int shadow_inset =
Shadow::GetInteriorInsetForStyle(Shadow::STYLE_ACTIVE);
+ WmWindowMus* wm_window = WmWindowMus::Get(window_);
const gfx::Insets extended_hit_region =
wm_window->ShouldUseExtendedHitRegion() ? GetExtendedHitRegion()
: gfx::Insets();
« no previous file with comments | « ash/mus/bridge/wm_window_mus_test_api.cc ('k') | ash/mus/test/wm_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698