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

Unified Diff: components/exo/shell_surface.cc

Issue 2807243007: Do not save/restore window state for client with BoundsMode::CLIENT. (Closed)
Patch Set: Created 3 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 | « components/exo/shell_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 7b05e9a5822b84c238163f58d4cf892b48a79cb8..7fe5345b5b344c4accc240554226b7f19eaeb74c 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -845,6 +845,21 @@ base::string16 ShellSurface::GetWindowTitle() const {
return title_;
}
+void ShellSurface::SaveWindowPlacement(const gfx::Rect& bounds,
+ ui::WindowShowState show_state) {
+ if (bounds_mode_ != BoundsMode::CLIENT)
+ WidgetDelegate::SaveWindowPlacement(bounds, show_state);
+}
+
+bool ShellSurface::GetSavedWindowPlacement(
+ const views::Widget* widget,
+ gfx::Rect* bounds,
+ ui::WindowShowState* show_state) const {
+ if (bounds_mode_ != BoundsMode::CLIENT)
+ return WidgetDelegate::GetSavedWindowPlacement(widget, bounds, show_state);
+ return false;
+}
+
void ShellSurface::WindowClosing() {
if (resizer_)
EndDrag(true /* revert */);
« no previous file with comments | « components/exo/shell_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698