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

Unified Diff: ash/wm/aura/wm_window_aura.cc

Issue 1901593004: Removes most aura dependencies from DockedWindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@window_resizer
Patch Set: branch from master Created 4 years, 8 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/wm/aura/wm_window_aura.h ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/aura/wm_window_aura.cc
diff --git a/ash/wm/aura/wm_window_aura.cc b/ash/wm/aura/wm_window_aura.cc
index 9dcb68bcbdcf20ef0043659ea9c0e7c3843984da..2dde352e5e023b3165d81a8aa2ffe85e218fe335 100644
--- a/ash/wm/aura/wm_window_aura.cc
+++ b/ash/wm/aura/wm_window_aura.cc
@@ -15,6 +15,7 @@
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/client/window_tree_client.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
@@ -190,6 +191,12 @@ WmWindow* WmWindowAura::GetToplevelWindow() {
return Get(window_->GetToplevelWindow());
}
+void WmWindowAura::SetParentUsingContext(WmWindow* context,
+ const gfx::Rect& screen_bounds) {
+ aura::client::ParentWindowWithContext(window_, GetAuraWindow(context),
+ screen_bounds);
+}
+
void WmWindowAura::AddChild(WmWindow* window) {
window_->AddChild(GetAuraWindow(window));
}
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698