diff options
Diffstat (limited to 'chrome/browser/ui/gtk/browser_window_gtk.h')
-rw-r--r-- | chrome/browser/ui/gtk/browser_window_gtk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.h b/chrome/browser/ui/gtk/browser_window_gtk.h index 0dcfa6e..d7509bb 100644 --- a/chrome/browser/ui/gtk/browser_window_gtk.h +++ b/chrome/browser/ui/gtk/browser_window_gtk.h @@ -166,6 +166,10 @@ class BrowserWindowGtk : public BrowserWindow, bool ShouldShowWindowIcon() const; + // This should only be called from tests where the debounce timeout introduces + // timing issues. + void DisableDebounceTimerForTests(bool is_disabled); + // Add the find bar widget to the window hierarchy. void AddFindBar(FindBarGtk* findbar); @@ -499,6 +503,13 @@ class BrowserWindowGtk : public BrowserWindow, scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; + // If true, the debounce timer won't be used and OnDebounceBoundsChanged won't + // be called. This should only be enabled in tests where the debounce timeout + // introduces timing issues (e.g. in OmniBoxApiTest it dismisses the + // autocomplete popup before the results can be read) and the final window + // position is unimportant. + bool debounce_timer_disabled_; + // The model that tracks the paint state of the arrow for the infobar // directly below the toolbar. InfoBarArrowModel infobar_arrow_model_; |