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

Unified Diff: components/exo/shell_surface.cc

Issue 2822643002: Do not save/restore window state for client which controls its own bounds. (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 97c18fee52ec16c9c7bce0881830f57cb2598d4f..dac956f21e5d9d68bc0c625334506f40ca8ec632 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -847,6 +847,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