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

Unified Diff: ui/views/corewm/window_util.h

Issue 11574041: Move WindowResizer to CoreWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « ui/views/corewm/window_resizer.cc ('k') | ui/views/corewm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_util.h
===================================================================
--- ui/views/corewm/window_util.h (revision 173169)
+++ ui/views/corewm/window_util.h (working copy)
@@ -6,12 +6,17 @@
#define UI_VIEWS_COREWM_WINDOW_UTIL_H_
#include "base/compiler_specific.h"
+#include "ui/base/ui_base_types.h"
#include "ui/views/views_export.h"
namespace aura {
class Window;
}
+namespace gfx {
+class Rect;
+}
+
namespace ui {
class Layer;
}
@@ -47,6 +52,22 @@
VIEWS_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window,
bool set_bounds) WARN_UNUSED_RESULT;
+// Returns true if |window| is normal or default.
+VIEWS_EXPORT bool IsWindowNormal(const aura::Window* window);
+
+// Returns true if |state| is normal or default.
+VIEWS_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state);
+
+// Sets the restore bounds property on |window| in the virtual screen
+// coordinates. Deletes existing bounds value if exists.
+VIEWS_EXPORT void SetRestoreBoundsInScreen(aura::Window* window,
+ const gfx::Rect& screen_bounds);
+
+// Returns the restore bounds property on |window| in the virtual screen
+// coordinates. The bounds can be NULL if the bounds property does not
+// exist for |window|. |window| owns the bounds object.
+VIEWS_EXPORT const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window);
+
} // namespace corewm
} // namespace views
« no previous file with comments | « ui/views/corewm/window_resizer.cc ('k') | ui/views/corewm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698