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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 10388251: Support maximize window command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Notification and observer for the browser window maximize are only defined on Linux." Created 8 years, 7 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
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 643bc5baa05bcb016ba7e4d7e3b8c1f1e26e7101..6a5167fa6177cee40c938bb072e6a4826a1ee414 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1603,6 +1603,13 @@ gboolean BrowserWindowGtk::OnWindowState(GtkWidget* sender,
}
}
+ if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_BROWSER_WINDOW_MAXIMIZED,
+ content::Source<BrowserWindow>(this),
+ content::NotificationService::NoDetails());
+ }
+
titlebar_->UpdateCustomFrame(UseCustomFrame() && !IsFullscreen());
UpdateWindowShape(bounds_.width(), bounds_.height());
SaveWindowPosition();

Powered by Google App Engine
This is Rietveld 408576698