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

Unified Diff: apps/shell_window_geometry_cache.h

Issue 17564005: Place newly created app windows on screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment; Fix name of CallAdjust... Created 7 years, 6 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 | apps/shell_window_geometry_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell_window_geometry_cache.h
diff --git a/apps/shell_window_geometry_cache.h b/apps/shell_window_geometry_cache.h
index 334b9fbbfd434587e3e8845bee703ff97d797b68..c51bb5a6b263b8be4af6518fdfe86d8e9fffdd17 100644
--- a/apps/shell_window_geometry_cache.h
+++ b/apps/shell_window_geometry_cache.h
@@ -69,6 +69,7 @@ class ShellWindowGeometryCache
void SaveGeometry(const std::string& extension_id,
const std::string& window_id,
const gfx::Rect& bounds,
+ const gfx::Rect& screen_bounds,
ui::WindowShowState state);
// Get any saved geometry and state associated with |extension_id| and
@@ -77,6 +78,7 @@ class ShellWindowGeometryCache
bool GetGeometry(const std::string& extension_id,
const std::string& window_id,
gfx::Rect* bounds,
+ gfx::Rect* screen_bounds,
ui::WindowShowState* state);
// BrowserContextKeyedService
@@ -96,8 +98,10 @@ class ShellWindowGeometryCache
private:
// Data stored for each window.
struct WindowData {
- WindowData() : window_state(ui::SHOW_STATE_DEFAULT) {}
+ WindowData();
+ ~WindowData();
gfx::Rect bounds;
+ gfx::Rect screen_bounds;
ui::WindowShowState window_state;
base::Time last_change;
};
« no previous file with comments | « no previous file | apps/shell_window_geometry_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698