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

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

Issue 10911274: Adding new window management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cahnged the SetBounds to SetBoundsInScreen Created 8 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 | « chrome/browser/ui/window_sizer/window_sizer.h ('k') | chrome/browser/ui/window_sizer/window_sizer_ash.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.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer.cc b/chrome/browser/ui/window_sizer/window_sizer.cc
index ac19c7b424cc9ec39cb0e62acc9215bd9198086b..ba299daf4df930caafeac701f7c13eccd3a2cb92 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc
@@ -168,7 +168,7 @@ void WindowSizer::DetermineWindowBounds(const gfx::Rect& specified_bounds,
gfx::Rect* bounds) const {
*bounds = specified_bounds;
if (bounds->IsEmpty()) {
- if (GetBoundsIgnoringPreviousState(specified_bounds, bounds))
+ if (GetBoundsOverride(specified_bounds, bounds))
return;
// See if there's saved placement information.
if (!GetLastWindowBounds(bounds)) {
@@ -330,13 +330,13 @@ void WindowSizer::AdjustBoundsToBeVisibleOnMonitorContaining(
#endif // defined(OS_MACOSX)
}
-bool WindowSizer::GetBoundsIgnoringPreviousState(
+bool WindowSizer::GetBoundsOverride(
const gfx::Rect& specified_bounds,
gfx::Rect* bounds) const {
#if defined(USE_ASH)
// TODO(beng): insufficient but currently necessary. http://crbug.com/133312
if (chrome::ShouldOpenAshOnStartup())
- return GetBoundsIgnoringPreviousStateAsh(specified_bounds, bounds);
+ return GetBoundsOverrideAsh(specified_bounds, bounds);
#endif
return false;
}
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer.h ('k') | chrome/browser/ui/window_sizer/window_sizer_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698