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

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: |BrowserWindow| (gtk and cocoa) will notify when a window is maximized. 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 bfa8fe878f1b678ebf75956b22cca33e20b0baed..1818464e6006ba042b9170ecf5b6f0da13a2988c 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1615,6 +1615,13 @@ gboolean BrowserWindowGtk::OnWindowState(GtkWidget* sender,
}
}
+ if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_WINDOW_MAXIMIZED,
+ content::Source<GtkWindow>(window_),
kkania 2012/05/30 01:03:58 instead of returning the os-specific window handle
zori 2012/05/31 23:38:22 Done.
+ content::NotificationService::NoDetails());
+ }
+
titlebar_->UpdateCustomFrame(UseCustomFrame() && !IsFullscreen());
UpdateWindowShape(bounds_.width(), bounds_.height());
SaveWindowPosition();

Powered by Google App Engine
This is Rietveld 408576698