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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer.h

Issue 23567007: More cleanup in window_sizer/window_sizer_ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/window_sizer/window_sizer.h
diff --git a/chrome/browser/ui/window_sizer/window_sizer.h b/chrome/browser/ui/window_sizer/window_sizer.h
index 7648104460dff4c2d54f07d597c5b8f3d7b531c3..c11a8a386ae659488490b03b1c15a7c307806685 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.h
+++ b/chrome/browser/ui/window_sizer/window_sizer.h
@@ -155,13 +155,11 @@ class WindowSizer {
gfx::Rect* bounds) const;
#if defined(USE_ASH)
- // Determines the position and size for an ash window as it gets created. This
- // will be called before other standard placement logic. It will return true
- // when the function was setting the bounds structure to the desired size.
- // Otherwise another algorithm should get used to determine the correct
- // bounds. |show_state| will only be changed if it was set to
- // SHOW_STATE_DEFAULT.
- bool GetBoundsOverrideAsh(gfx::Rect* bounds_in_screen,
+ // Determines the position and size for a tabbed browser window in
+ // ash as it gets created. This will be called before other standard
+ // placement logic. |show_state| will only be changed
+ // if it was set to SHOW_STATE_DEFAULT.
+ void GetBoundsOverrideAsh(gfx::Rect* bounds_in_screen,
ui::WindowShowState* show_state) const;
#endif
@@ -169,6 +167,9 @@ class WindowSizer {
// windows or at persistent information.
ui::WindowShowState GetWindowDefaultShowState() const;
+ bool IsTabbedBrowserInAsh() const;
+ bool IsPopupBrowserInAsh() const;
+
// Providers for persistent storage and monitor metrics.
scoped_ptr<StateProvider> state_provider_;
gfx::Screen* screen_; // not owned.
« no previous file with comments | « no previous file | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | chrome/browser/ui/window_sizer/window_sizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698