| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Returns the WmShelf for the primary display. | 69 // Returns the WmShelf for the primary display. |
| 70 static WmShelf* GetPrimaryShelf(); | 70 static WmShelf* GetPrimaryShelf(); |
| 71 | 71 |
| 72 // Returns the system tray on the primary display. | 72 // Returns the system tray on the primary display. |
| 73 static SystemTray* GetPrimarySystemTray(); | 73 static SystemTray* GetPrimarySystemTray(); |
| 74 | 74 |
| 75 // Update the display configuration as given in |display_specs|. | 75 // Update the display configuration as given in |display_specs|. |
| 76 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. | 76 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. |
| 77 void UpdateDisplay(const std::string& display_specs); | 77 void UpdateDisplay(const std::string& display_specs); |
| 78 | 78 |
| 79 // Set the 1st display as an internal display and returns the display Id for |
| 80 // the internal display. |
| 81 // See ash::test::DisplayManagerTestApi::SetFirstDisplayAsInternalDisplay for |
| 82 // more details. |
| 83 int64_t SetFirstDisplayAsInternalDisplay(); |
| 84 |
| 79 // Returns a root Window. Usually this is the active root Window, but that | 85 // Returns a root Window. Usually this is the active root Window, but that |
| 80 // method can return NULL sometimes, and in those cases, we fall back on the | 86 // method can return NULL sometimes, and in those cases, we fall back on the |
| 81 // primary root Window. | 87 // primary root Window. |
| 82 aura::Window* CurrentContext(); | 88 aura::Window* CurrentContext(); |
| 83 | 89 |
| 84 // Creates and shows a widget. See ash/common/shell_window_ids.h for values | 90 // Creates and shows a widget. See ash/common/shell_window_ids.h for values |
| 85 // for |container_id|. | 91 // for |container_id|. |
| 86 static std::unique_ptr<views::Widget> CreateTestWidget( | 92 static std::unique_ptr<views::Widget> CreateTestWidget( |
| 87 views::WidgetDelegate* delegate, | 93 views::WidgetDelegate* delegate, |
| 88 int container_id, | 94 int container_id, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ~NoSessionAshTestBase() override {} | 198 ~NoSessionAshTestBase() override {} |
| 193 | 199 |
| 194 private: | 200 private: |
| 195 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 201 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 196 }; | 202 }; |
| 197 | 203 |
| 198 } // namespace test | 204 } // namespace test |
| 199 } // namespace ash | 205 } // namespace ash |
| 200 | 206 |
| 201 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 207 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |