summaryrefslogtreecommitdiffstats
path: root/views/window/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/window.h')
-rw-r--r--views/window/window.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/views/window/window.h b/views/window/window.h
index ba7ed98..9775ed7 100644
--- a/views/window/window.h
+++ b/views/window/window.h
@@ -84,7 +84,7 @@ class Window : public internal::NativeWindowDelegate {
gfx::NativeWindow other_window);
// Makes the window visible.
- virtual void Show();
+ void Show();
// Hides the window. This does not delete the window, it just hides it. This
// always hides the window, it is separate from the stack maintained by
@@ -163,7 +163,7 @@ class Window : public internal::NativeWindowDelegate {
virtual void EnableClose(bool enable);
// Tell the window to update its title from the delegate.
- virtual void UpdateWindowTitle();
+ void UpdateWindowTitle();
// Tell the window to update its icon from the delegate.
virtual void UpdateWindowIcon();
@@ -218,13 +218,17 @@ class Window : public internal::NativeWindowDelegate {
}
// Overridden from NativeWindowDelegate:
- virtual gfx::Size GetPreferredSize() const;
- virtual void OnWindowDestroying();
- virtual void OnWindowDestroyed();
+ virtual bool IsModal() const OVERRIDE;
+ virtual void OnNativeWindowCreated(const gfx::Rect& bounds) OVERRIDE;
+ virtual void OnWindowDestroying() OVERRIDE;
+ virtual void OnWindowDestroyed() OVERRIDE;
private:
Window();
+ // Sizes and positions the window just after it is created.
+ void SetInitialBounds(const gfx::Rect& bounds);
+
NativeWindow* native_window_;
// Our window delegate (see InitWindow() method for documentation).
@@ -236,6 +240,13 @@ class Window : public internal::NativeWindowDelegate {
// desired implementation before calling |InitWindow()|.
NonClientView* non_client_view_;
+ // The saved maximized state for this window. See note in SetInitialBounds
+ // that explains why we save this.
+ bool saved_maximized_state_;
+
+ // The smallest size the window can be.
+ gfx::Size minimum_size_;
+
DISALLOW_COPY_AND_ASSIGN(Window);
};