OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_AURA_TEST_TEST_WINDOWS_H_ | 5 #ifndef UI_AURA_TEST_TEST_WINDOWS_H_ |
6 #define UI_AURA_TEST_TEST_WINDOWS_H_ | 6 #define UI_AURA_TEST_TEST_WINDOWS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
12 #include "ui/aura/client/window_types.h" | 12 #include "ui/aura/test/aura_test_base.h" |
13 #include "ui/aura/test/test_window_delegate.h" | 13 #include "ui/aura/test/test_window_delegate.h" |
14 #include "ui/aura/test/aura_test_base.h" | 14 #include "ui/wm/public/window_types.h" |
15 | 15 |
16 namespace aura { | 16 namespace aura { |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 Window* CreateTestWindowWithId(int id, Window* parent); | 19 Window* CreateTestWindowWithId(int id, Window* parent); |
20 Window* CreateTestWindowWithBounds(const gfx::Rect& bounds, Window* parent); | 20 Window* CreateTestWindowWithBounds(const gfx::Rect& bounds, Window* parent); |
21 Window* CreateTestWindow(SkColor color, | 21 Window* CreateTestWindow(SkColor color, |
22 int id, | 22 int id, |
23 const gfx::Rect& bounds, | 23 const gfx::Rect& bounds, |
24 Window* parent); | 24 Window* parent); |
25 Window* CreateTestWindowWithDelegate(WindowDelegate* delegate, | 25 Window* CreateTestWindowWithDelegate(WindowDelegate* delegate, |
26 int id, | 26 int id, |
27 const gfx::Rect& bounds, | 27 const gfx::Rect& bounds, |
28 Window* parent); | 28 Window* parent); |
29 Window* CreateTestWindowWithDelegateAndType(WindowDelegate* delegate, | 29 Window* CreateTestWindowWithDelegateAndType(WindowDelegate* delegate, |
30 client::WindowType type, | 30 ui::wm::WindowType type, |
31 int id, | 31 int id, |
32 const gfx::Rect& bounds, | 32 const gfx::Rect& bounds, |
33 Window* parent); | 33 Window* parent); |
34 | 34 |
35 // Returns true if |upper| is above |lower| in the window stacking order. | 35 // Returns true if |upper| is above |lower| in the window stacking order. |
36 bool WindowIsAbove(Window* upper, Window* lower); | 36 bool WindowIsAbove(Window* upper, Window* lower); |
37 | 37 |
38 // Returns true if |upper|'s layer is above |lower|'s layer in the layer | 38 // Returns true if |upper|'s layer is above |lower|'s layer in the layer |
39 // stacking order. | 39 // stacking order. |
40 bool LayerIsAbove(Window* upper, Window* lower); | 40 bool LayerIsAbove(Window* upper, Window* lower); |
41 | 41 |
42 // Returns a string containing the id of each of the child windows (bottommost | 42 // Returns a string containing the id of each of the child windows (bottommost |
43 // first) of |parent|. The format of the string is "id1 id2 id...". | 43 // first) of |parent|. The format of the string is "id1 id2 id...". |
44 std::string ChildWindowIDsAsString(aura::Window* parent); | 44 std::string ChildWindowIDsAsString(aura::Window* parent); |
45 | 45 |
46 } // namespace test | 46 } // namespace test |
47 } // namespace aura | 47 } // namespace aura |
48 | 48 |
49 #endif // UI_AURA_TEST_TEST_WINDOWS_H_ | 49 #endif // UI_AURA_TEST_TEST_WINDOWS_H_ |
OLD | NEW |