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

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

Issue 9307018: Linux: make BrowserWindowGtk's window reconfigure timer more transparent to tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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/ui/gtk/browser_window_gtk.h ('k') | no next file » | 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
===================================================================
--- chrome/browser/ui/gtk/browser_window_gtk.cc (revision 119942)
+++ chrome/browser/ui/gtk/browser_window_gtk.cc (working copy)
@@ -1472,7 +1472,7 @@
// When the window moves, we'll get multiple configure-event signals. We can
// also get events when the bounds haven't changed, but the window's stacking
// has, which we aren't interested in. http://crbug.com/70125
- if (bounds == bounds_)
+ if (bounds == configure_bounds_)
return FALSE;
GetLocationBar()->location_entry()->ClosePopup();
@@ -1491,6 +1491,7 @@
// window-manager specific. We update |restored_bounds_| in the debounced
// handler below, after the window state has been updated.
bounds_ = bounds;
+ configure_bounds_ = bounds;
// The GdkEventConfigure* we get here doesn't have quite the right
// coordinates though (they're relative to the drawable window area, rather
@@ -1748,8 +1749,10 @@
void BrowserWindowGtk::InitWidgets() {
ConnectHandlersToSignals();
- bounds_ = restored_bounds_ = GetInitialWindowBounds(window_);
+ bounds_ = configure_bounds_ = restored_bounds_ =
+ GetInitialWindowBounds(window_);
+
// This vbox encompasses all of the widgets within the browser. This is
// everything except the custom frame border.
window_vbox_ = gtk_vbox_new(FALSE, 0);
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698