diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 04:36:36 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 04:36:36 +0000 |
commit | b124be829f4d6907c17238ab1c84eed5acc817eb (patch) | |
tree | 602d491b7d2d4d069726357374891fcb2a61d2f4 /chrome/views/window.h | |
parent | e436beba7f389b18a27d1fe0c9940a2d52000229 (diff) | |
download | chromium_src-b124be829f4d6907c17238ab1c84eed5acc817eb.zip chromium_src-b124be829f4d6907c17238ab1c84eed5acc817eb.tar.gz chromium_src-b124be829f4d6907c17238ab1c84eed5acc817eb.tar.bz2 |
Move the initial sizing of a Window into a separate function (SetInitialBounds) to tidy up the Init method a bit. Move SetInitialFocus into private section since it's not used by subclasses.
B=1293984
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window.h')
-rw-r--r-- | chrome/views/window.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/views/window.h b/chrome/views/window.h index 0e86555..d6bb48e 100644 --- a/chrome/views/window.h +++ b/chrome/views/window.h @@ -173,11 +173,6 @@ class Window : public HWNDViewContainer { protected: virtual void SizeWindowToDefault(); - // Sets-up the focus manager with the view that should have focus when the - // window is shown the first time. If NULL is returned, the focus goes to the - // button if there is one, otherwise the to the Cancel button. - void SetInitialFocus(); - // Overridden from HWNDViewContainer: virtual void OnActivate(UINT action, BOOL minimized, HWND window); virtual void OnCommand(UINT notification_code, int command_id, HWND window); @@ -199,6 +194,15 @@ class Window : public HWNDViewContainer { // Set the window as modal (by disabling all the other windows). void BecomeModal(); + // Sets-up the focus manager with the view that should have focus when the + // window is shown the first time. If NULL is returned, the focus goes to the + // button if there is one, otherwise the to the Cancel button. + void SetInitialFocus(); + + // Place and size the window when it is created. |create_bounds| are the + // bounds used when the window was created. + void SetInitialBounds(const gfx::Rect& create_bounds); + // Add an item for "Always on Top" to the System Menu. void AddAlwaysOnTopSystemMenuItem(); |