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

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

Issue 1901773002: Removes most of aura dependencies from DefaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wm_window_positioner
Patch Set: nit and merge 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/window_animation_types.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 b7c07124359e3a76ac1797e3bbc6f4dcc297ef69..9dcb68bcbdcf20ef0043659ea9c0e7c3843984da 100644
--- a/ash/wm/aura/wm_window_aura.cc
+++ b/ash/wm/aura/wm_window_aura.cc
@@ -190,6 +190,10 @@ WmWindow* WmWindowAura::GetToplevelWindow() {
return Get(window_->GetToplevelWindow());
}
+void WmWindowAura::AddChild(WmWindow* window) {
+ window_->AddChild(GetAuraWindow(window));
+}
+
WmWindow* WmWindowAura::GetParent() {
return Get(window_->parent());
}
@@ -207,6 +211,14 @@ std::vector<WmWindow*> WmWindowAura::GetTransientChildren() {
return wm_windows;
}
+void WmWindowAura::SetVisibilityAnimationType(int type) {
+ ::wm::SetWindowVisibilityAnimationType(window_, type);
+}
+
+void WmWindowAura::Animate(::wm::WindowAnimationType type) {
+ ::wm::AnimateWindow(window_, type);
+}
+
void WmWindowAura::SetBounds(const gfx::Rect& bounds) {
window_->SetBounds(bounds);
}
@@ -315,6 +327,10 @@ ui::WindowShowState WmWindowAura::GetShowState() const {
return window_->GetProperty(aura::client::kShowStateKey);
}
+void WmWindowAura::SetRestoreShowState(ui::WindowShowState show_state) {
+ window_->SetProperty(aura::client::kRestoreShowStateKey, show_state);
+}
+
void WmWindowAura::SetCapture() {
window_->SetCapture();
}
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/window_animation_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698