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

Unified Diff: views/window/window.h

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « views/window/non_client_view.cc ('k') | views/window/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window.h
===================================================================
--- views/window/window.h (revision 88218)
+++ views/window/window.h (working copy)
@@ -64,34 +64,10 @@
// operations are performed.
void InitWindow(const InitParams& params);
- // Retrieves the window's bounds, including its frame.
- gfx::Rect GetBounds() const;
-
- // Retrieves the restored bounds for the window.
- gfx::Rect GetNormalBounds() const;
-
- // Like Show(), but does not activate the window.
- void ShowInactive();
-
- // Prevents the window from being rendered as deactivated the next time it is.
- // This state is reset automatically as soon as the window becomes activated
- // again. There is no ability to control the state through this API as this
- // leads to sync problems.
- void DisableInactiveRendering();
-
- // Toggles the enable state for the Close button (and the Close menu item in
- // the system menu).
- void EnableClose(bool enable);
-
- // Tell the window to update its title from the delegate.
- void UpdateWindowTitle();
-
- // Tell the window to update its icon from the delegate.
- void UpdateWindowIcon();
-
// Overridden from Widget:
virtual void Show() OVERRIDE;
- virtual void Close() OVERRIDE;
+ virtual Window* AsWindow() OVERRIDE;
+ virtual const Window* AsWindow() const OVERRIDE;
WindowDelegate* window_delegate() {
return const_cast<WindowDelegate*>(
@@ -105,31 +81,15 @@
protected:
// Overridden from NativeWindowDelegate:
- virtual bool CanActivate() const OVERRIDE;
- virtual bool IsInactiveRenderingDisabled() const OVERRIDE;
- virtual void EnableInactiveRendering() OVERRIDE;
virtual bool IsModal() const OVERRIDE;
virtual bool IsDialogBox() const OVERRIDE;
- virtual gfx::Size GetMinimumSize() OVERRIDE;
- virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE;
- virtual bool ExecuteCommand(int command_id) OVERRIDE;
virtual void OnNativeWindowCreated(const gfx::Rect& bounds) OVERRIDE;
- virtual void OnNativeWindowActivationChanged(bool active) OVERRIDE;
- virtual void OnNativeWindowBeginUserBoundsChange() OVERRIDE;
- virtual void OnNativeWindowEndUserBoundsChange() OVERRIDE;
- virtual void OnNativeWindowDestroying() OVERRIDE;
- virtual void OnNativeWindowBoundsChanged() OVERRIDE;
- virtual Window* AsWindow() OVERRIDE;
virtual internal::NativeWidgetDelegate* AsNativeWidgetDelegate() OVERRIDE;
private:
// Sizes and positions the window just after it is created.
void SetInitialBounds(const gfx::Rect& bounds);
- // Persists the window's restored position and maximized state using the
- // window delegate.
- void SaveWindowPosition();
-
NativeWindow* native_window_;
// The saved maximized state for this window. See note in SetInitialBounds
@@ -139,13 +99,6 @@
// The smallest size the window can be.
gfx::Size minimum_size_;
- // True when the window should be rendered as active, regardless of whether
- // or not it actually is.
- bool disable_inactive_rendering_;
-
- // Set to true if the window is in the process of closing .
- bool window_closed_;
-
DISALLOW_COPY_AND_ASSIGN(Window);
};
« no previous file with comments | « views/window/non_client_view.cc ('k') | views/window/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698