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

Unified Diff: apps/shell_window_geometry_cache.h

Issue 17378003: [WIN]Save work area of window and adjust bounds to ensure it fit on screen before show. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to windows only. 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