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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.h

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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // Put the bookmark bar where it belongs. 447 // Put the bookmark bar where it belongs.
448 void PlaceBookmarkBar(bool is_floating); 448 void PlaceBookmarkBar(bool is_floating);
449 449
450 // Determine whether we use should default to native decorations or the custom 450 // Determine whether we use should default to native decorations or the custom
451 // frame based on the currently-running window manager. 451 // frame based on the currently-running window manager.
452 static bool GetCustomFramePrefDefault(); 452 static bool GetCustomFramePrefDefault();
453 453
454 // The position and size of the current window. 454 // The position and size of the current window.
455 gfx::Rect bounds_; 455 gfx::Rect bounds_;
456 456
457 // The configure bounds of the current window, used to figure out whether to
458 // ignore later configure events. See OnConfigure() for more information.
459 gfx::Rect configure_bounds_;
460
457 // The position and size of the non-maximized, non-fullscreen window. 461 // The position and size of the non-maximized, non-fullscreen window.
458 gfx::Rect restored_bounds_; 462 gfx::Rect restored_bounds_;
459 463
460 GdkWindowState state_; 464 GdkWindowState state_;
461 465
462 // Controls a hidden GtkMenuBar that we keep updated so GNOME can take a look 466 // Controls a hidden GtkMenuBar that we keep updated so GNOME can take a look
463 // inside "our menu bar" and present it in the top panel, akin to Mac OS. 467 // inside "our menu bar" and present it in the top panel, akin to Mac OS.
464 scoped_ptr<GlobalMenuBar> global_menu_bar_; 468 scoped_ptr<GlobalMenuBar> global_menu_bar_;
465 469
466 // The container for the titlebar + tab strip. 470 // The container for the titlebar + tab strip.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // be called. This should only be enabled in tests where the debounce timeout 549 // be called. This should only be enabled in tests where the debounce timeout
546 // introduces timing issues (e.g. in OmniBoxApiTest it dismisses the 550 // introduces timing issues (e.g. in OmniBoxApiTest it dismisses the
547 // autocomplete popup before the results can be read) and the final window 551 // autocomplete popup before the results can be read) and the final window
548 // position is unimportant. 552 // position is unimportant.
549 bool debounce_timer_disabled_; 553 bool debounce_timer_disabled_;
550 554
551 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 555 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
552 }; 556 };
553 557
554 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 558 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698