| Index: ui/views/corewm/window_util.cc
|
| ===================================================================
|
| --- ui/views/corewm/window_util.cc (revision 173169)
|
| +++ ui/views/corewm/window_util.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "ui/views/corewm/window_util.h"
|
|
|
| #include "ui/aura/client/activation_client.h"
|
| +#include "ui/aura/client/aura_constants.h"
|
| #include "ui/aura/root_window.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/compositor/layer.h"
|
| @@ -82,5 +83,21 @@
|
| return old_layer;
|
| }
|
|
|
| +bool IsWindowNormal(const aura::Window* window) {
|
| + return IsWindowStateNormal(window->GetProperty(aura::client::kShowStateKey));
|
| +}
|
| +
|
| +bool IsWindowStateNormal(ui::WindowShowState state) {
|
| + return state == ui::SHOW_STATE_NORMAL || state == ui::SHOW_STATE_DEFAULT;
|
| +}
|
| +
|
| +void SetRestoreBoundsInScreen(aura::Window* window, const gfx::Rect& bounds) {
|
| + window->SetProperty(aura::client::kRestoreBoundsKey, new gfx::Rect(bounds));
|
| +}
|
| +
|
| +const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window) {
|
| + return window->GetProperty(aura::client::kRestoreBoundsKey);
|
| +}
|
| +
|
| } // namespace corewm
|
| } // namespace views
|
|
|