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

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: 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
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..8aed76f0aae353e8b4cf064cdca4938a47bc7053 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& work_area,
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* work_area,
ui::WindowShowState* state);
// BrowserContextKeyedService
@@ -98,6 +100,7 @@ class ShellWindowGeometryCache
struct WindowData {
WindowData() : window_state(ui::SHOW_STATE_DEFAULT) {}
gfx::Rect bounds;
+ gfx::Rect work_area;
ui::WindowShowState window_state;
base::Time last_change;
};
« no previous file with comments | « no previous file | apps/shell_window_geometry_cache.cc » ('j') | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698