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

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: fix build Created 7 years, 3 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 | « no previous file | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..590542610c98abbe4dd6ce9bcca7a385c11478c3 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.h
+++ b/chrome/browser/ui/window_sizer/window_sizer.h
@@ -155,20 +155,23 @@ 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,
- ui::WindowShowState* show_state) const;
+ // 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 GetTabbedBrowserBoundsAsh(gfx::Rect* bounds_in_screen,
+ ui::WindowShowState* show_state) const;
#endif
// Determine the default show state for the window - not looking at other
// windows or at persistent information.
ui::WindowShowState GetWindowDefaultShowState() const;
+#if defined(USE_ASH)
+ bool IsTabbedBrowserInAsh() const;
+ bool IsPopupBrowserInAsh() const;
+#endif
+
// 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698