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 ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Update the display configuration as given in |display_specs|. | 76 // Update the display configuration as given in |display_specs|. |
77 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. | 77 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. |
78 void UpdateDisplay(const std::string& display_specs); | 78 void UpdateDisplay(const std::string& display_specs); |
79 | 79 |
80 // Returns a root Window. Usually this is the active root Window, but that | 80 // Returns a root Window. Usually this is the active root Window, but that |
81 // method can return NULL sometimes, and in those cases, we fall back on the | 81 // method can return NULL sometimes, and in those cases, we fall back on the |
82 // primary root Window. | 82 // primary root Window. |
83 aura::Window* CurrentContext(); | 83 aura::Window* CurrentContext(); |
84 | 84 |
85 // Creates and shows a widget. See ash/common/shell_window_ids.h for values | 85 // Creates and shows a widget. See ash/public/cpp/shell_window_ids.h for |
86 // for |container_id|. | 86 // values for |container_id|. |
87 static std::unique_ptr<views::Widget> CreateTestWidget( | 87 static std::unique_ptr<views::Widget> CreateTestWidget( |
88 views::WidgetDelegate* delegate, | 88 views::WidgetDelegate* delegate, |
89 int container_id, | 89 int container_id, |
90 const gfx::Rect& bounds); | 90 const gfx::Rect& bounds); |
91 | 91 |
92 // Versions of the functions in aura::test:: that go through our shell | 92 // Versions of the functions in aura::test:: that go through our shell |
93 // StackingController instead of taking a parent. | 93 // StackingController instead of taking a parent. |
94 aura::Window* CreateTestWindowInShellWithId(int id); | 94 aura::Window* CreateTestWindowInShellWithId(int id); |
95 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); | 95 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); |
96 aura::Window* CreateTestWindowInShell(SkColor color, | 96 aura::Window* CreateTestWindowInShell(SkColor color, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 ~NoSessionAshTestBase() override {} | 202 ~NoSessionAshTestBase() override {} |
203 | 203 |
204 private: | 204 private: |
205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace test | 208 } // namespace test |
209 } // namespace ash | 209 } // namespace ash |
210 | 210 |
211 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 211 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |