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

Unified Diff: chrome/browser/window_sizer.h

Issue 165173: Merge 21946 - Move window to workarea origin if it is completely offscreen.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/browser/views/chrome_views_delegate.cc ('k') | chrome/browser/window_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/window_sizer.h
===================================================================
--- chrome/browser/window_sizer.h (revision 22807)
+++ chrome/browser/window_sizer.h (working copy)
@@ -88,7 +88,8 @@
// Retrieve the persisted bounds of the window. Returns true if there was
// persisted data to retrieve state information, false otherwise.
virtual bool GetPersistentState(gfx::Rect* bounds,
- bool* maximized) const = 0;
+ bool* maximized,
+ gfx::Rect* work_area) const = 0;
// Retrieve the bounds of the most recent window of the matching type.
// Returns true if there was a last active window to retrieve state
@@ -162,8 +163,13 @@
// monitor containing |other_bounds|. Despite the name, this doesn't
// guarantee the bounds are fully contained within this monitor's work rect;
// it just tried to ensure the edges are visible on _some_ work rect.
+ // If |saved_work_area| is non-empty, it is used to determine whether the
+ // monitor cofiguration has changed. If it has, bounds are repositioned and
+ // resized if necessary to make them completely contained in the current work
+ // area.
void AdjustBoundsToBeVisibleOnMonitorContaining(
const gfx::Rect& other_bounds,
+ const gfx::Rect& saved_work_area,
gfx::Rect* bounds) const;
// Providers for persistent storage and monitor metrics.
Property changes on: chrome\browser\window_sizer.h
___________________________________________________________________
Added: svn:mergeinfo
Merged /trunk/src/chrome/browser/window_sizer.h:r21946
Merged /branches/chrome_webkit_merge_branch/chrome/browser/window_sizer.h:r69-2775
« no previous file with comments | « chrome/browser/views/chrome_views_delegate.cc ('k') | chrome/browser/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698