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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2091263004: Moves a couple of the maximize mode classes to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/aura/wm_window_aura.h ('k') | ash/common/wm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 782b1b63edcca06f9aa08d193d3630b1644517f8..cbe38c76f4abda90a00b4c9023d32fe6ab6116ab 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -450,6 +450,19 @@ void WmWindowAura::SetRestoreShowState(ui::WindowShowState show_state) {
window_->SetProperty(aura::client::kRestoreShowStateKey, show_state);
}
+void WmWindowAura::SetRestoreOverrides(
+ const gfx::Rect& bounds_override,
+ ui::WindowShowState window_state_override) {
+ if (bounds_override.IsEmpty()) {
+ window_->ClearProperty(kRestoreShowStateOverrideKey);
+ window_->ClearProperty(kRestoreBoundsOverrideKey);
+ return;
+ }
+ window_->SetProperty(kRestoreShowStateOverrideKey, window_state_override);
+ window_->SetProperty(kRestoreBoundsOverrideKey,
+ new gfx::Rect(bounds_override));
+}
+
void WmWindowAura::SetLockedToRoot(bool value) {
window_->SetProperty(kStayInSameRootWindowKey, value);
}
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698