| OLD | NEW |
| 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_WINDOW_SIZER_WINDOW_SIZER_H_ | 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
| 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // area. | 141 // area. |
| 142 void AdjustBoundsToBeVisibleOnMonitorContaining( | 142 void AdjustBoundsToBeVisibleOnMonitorContaining( |
| 143 const gfx::Rect& other_bounds, | 143 const gfx::Rect& other_bounds, |
| 144 const gfx::Rect& saved_work_area, | 144 const gfx::Rect& saved_work_area, |
| 145 gfx::Rect* bounds) const; | 145 gfx::Rect* bounds) const; |
| 146 | 146 |
| 147 // Determines the position and size for a window as it gets created. This | 147 // Determines the position and size for a window as it gets created. This |
| 148 // will be called before DetermineWindowBounds. It will return true when the | 148 // will be called before DetermineWindowBounds. It will return true when the |
| 149 // function was setting the bounds structure to the desired size. Otherwise | 149 // function was setting the bounds structure to the desired size. Otherwise |
| 150 // another algorithm should get used to determine the correct bounds. | 150 // another algorithm should get used to determine the correct bounds. |
| 151 bool GetBoundsIgnoringPreviousState(const gfx::Rect& specified_bounds, | 151 bool GetBoundsOverride(const gfx::Rect& specified_bounds, |
| 152 gfx::Rect* bounds) const; | 152 gfx::Rect* bounds) const; |
| 153 #if defined(USE_ASH) | 153 #if defined(USE_ASH) |
| 154 bool GetBoundsIgnoringPreviousStateAsh(const gfx::Rect& specified_bounds, | 154 bool GetBoundsOverrideAsh(const gfx::Rect& specified_bounds, |
| 155 gfx::Rect* bounds) const; | 155 gfx::Rect* bounds_in_screen) const; |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 // Providers for persistent storage and monitor metrics. | 158 // Providers for persistent storage and monitor metrics. |
| 159 scoped_ptr<StateProvider> state_provider_; | 159 scoped_ptr<StateProvider> state_provider_; |
| 160 scoped_ptr<MonitorInfoProvider> monitor_info_provider_; | 160 scoped_ptr<MonitorInfoProvider> monitor_info_provider_; |
| 161 | 161 |
| 162 // Note that this browser handle might be NULL. | 162 // Note that this browser handle might be NULL. |
| 163 const Browser* browser_; | 163 const Browser* browser_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(WindowSizer); | 165 DISALLOW_COPY_AND_ASSIGN(WindowSizer); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 168 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
| OLD | NEW |