summaryrefslogtreecommitdiffstats
path: root/views/views_delegate.h
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 13:45:11 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 13:45:11 +0000
commit28aec9a5983496afebebc017ac75aa1dad0bede6 (patch)
tree27ef3bf92fd8e4641e7c44249fc587fb1a3e962e /views/views_delegate.h
parented2533fe7b6540a235e9df588ebdb5e85a43466c (diff)
downloadchromium_src-28aec9a5983496afebebc017ac75aa1dad0bede6.zip
chromium_src-28aec9a5983496afebebc017ac75aa1dad0bede6.tar.gz
chromium_src-28aec9a5983496afebebc017ac75aa1dad0bede6.tar.bz2
Store the user's profile as a property of a window in order to access it when saving window data with the ChromeViewsDelegate.
BUG=71804 TEST=PreservedWindowPlacement tests pass on all platforms. Review URL: http://codereview.chromium.org/6250114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/views_delegate.h')
-rw-r--r--views/views_delegate.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/views/views_delegate.h b/views/views_delegate.h
index 66d91a7..98b734e 100644
--- a/views/views_delegate.h
+++ b/views/views_delegate.h
@@ -24,6 +24,7 @@ class Clipboard;
namespace views {
class View;
+class Window;
// ViewsDelegate is an interface implemented by an object using the views
// framework. It is used to obtain various high level application utilities
@@ -40,18 +41,21 @@ class ViewsDelegate {
// Saves the position, size and maximized state for the window with the
// specified name.
- virtual void SaveWindowPlacement(const std::wstring& window_name,
+ virtual void SaveWindowPlacement(views::Window* window,
+ const std::wstring& window_name,
const gfx::Rect& bounds,
bool maximized) = 0;
// Retrieves the saved position and size for the window with the specified
// name.
- virtual bool GetSavedWindowBounds(const std::wstring& window_name,
+ virtual bool GetSavedWindowBounds(views::Window* window,
+ const std::wstring& window_name,
gfx::Rect* bounds) const = 0;
// Retrieves the saved maximized state for the window with the specified
// name.
- virtual bool GetSavedMaximizedState(const std::wstring& window_name,
+ virtual bool GetSavedMaximizedState(views::Window* window,
+ const std::wstring& window_name,
bool* maximized) const = 0;
// Notify the delegate that an accessibility event has happened in