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

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: "Fix documentation." Created 8 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 | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
Ben Goodger (Google) 2012/06/12 17:42:26 is this notification sent on other platforms alrea
+ chrome::NOTIFICATION_BROWSER_WINDOW_MAXIMIZED,
+ content::Source<BrowserWindow>(this),
+ content::NotificationService::NoDetails());
+ }
+
titlebar_->UpdateCustomFrame(UseCustomFrame() && !IsFullscreen());
UpdateWindowShape(bounds_.width(), bounds_.height());
SaveWindowPosition();
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698