summaryrefslogtreecommitdiffstats
path: root/ash/wm/property_util.h
blob: 078404553dd07771dc2434269044c869cd363c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_PROPERTY_UTIL_H_
#define ASH_WM_PROPERTY_UTIL_H_
#pragma once

namespace aura {
class Window;
}

namespace gfx {
class Rect;
}

namespace aura_shell {

// Sets the restore bounds property on |window|. Deletes existing bounds value
// if exists.
void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds);

// Same as SetRestoreBounds(), but does nothing if the restore bounds have
// already been set. The bounds used are the bounds of the window.
void SetRestoreBoundsIfNotSet(aura::Window* window);

// Returns the restore bounds property on |window|. NULL if the
// restore bounds property does not exist for |window|. |window|
// owns the bounds object.
const gfx::Rect* GetRestoreBounds(aura::Window* window);

// Deletes and clears the restore bounds property on |window|.
void ClearRestoreBounds(aura::Window* window);

}

#endif  // ASH_WM_PROPERTY_UTIL_H_