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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 aura::WindowDelegate* delegate, | 80 aura::WindowDelegate* delegate, |
81 int id, | 81 int id, |
82 const gfx::Rect& bounds); | 82 const gfx::Rect& bounds); |
83 aura::Window* CreateTestWindowInShellWithDelegateAndType( | 83 aura::Window* CreateTestWindowInShellWithDelegateAndType( |
84 aura::WindowDelegate* delegate, | 84 aura::WindowDelegate* delegate, |
85 aura::client::WindowType type, | 85 aura::client::WindowType type, |
86 int id, | 86 int id, |
87 const gfx::Rect& bounds); | 87 const gfx::Rect& bounds); |
88 | 88 |
89 // Attach |window| to the current shell's root window. | 89 // Attach |window| to the current shell's root window. |
90 void SetDefaultParentByPrimaryRootWindow(aura::Window* window); | 90 void ParentWindowInPrimaryRootWindow(aura::Window* window); |
91 | 91 |
92 // Returns the EventGenerator that uses screen coordinates and works | 92 // Returns the EventGenerator that uses screen coordinates and works |
93 // across multiple displays. It createse a new generator if it | 93 // across multiple displays. It createse a new generator if it |
94 // hasn't been created yet. | 94 // hasn't been created yet. |
95 aura::test::EventGenerator& GetEventGenerator(); | 95 aura::test::EventGenerator& GetEventGenerator(); |
96 | 96 |
97 protected: | 97 protected: |
98 enum UserSessionBlockReason { | 98 enum UserSessionBlockReason { |
99 FIRST_BLOCK_REASON, | 99 FIRST_BLOCK_REASON, |
100 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, | 100 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual ~NoSessionAshTestBase() {} | 156 virtual ~NoSessionAshTestBase() {} |
157 | 157 |
158 private: | 158 private: |
159 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 159 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
160 }; | 160 }; |
161 | 161 |
162 } // namespace test | 162 } // namespace test |
163 } // namespace ash | 163 } // namespace ash |
164 | 164 |
165 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 165 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |