| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Returns the WmShelf for the primary display. | 77 // Returns the WmShelf for the primary display. |
| 78 static WmShelf* GetPrimaryShelf(); | 78 static WmShelf* GetPrimaryShelf(); |
| 79 | 79 |
| 80 // Returns the system tray on the primary display. | 80 // Returns the system tray on the primary display. |
| 81 static SystemTray* GetPrimarySystemTray(); | 81 static SystemTray* GetPrimarySystemTray(); |
| 82 | 82 |
| 83 // Update the display configuration as given in |display_specs|. | 83 // Update the display configuration as given in |display_specs|. |
| 84 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. | 84 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. |
| 85 void UpdateDisplay(const std::string& display_specs); | 85 void UpdateDisplay(const std::string& display_specs); |
| 86 | 86 |
| 87 // Set the 1st display as an internal display and returns the display Id for |
| 88 // the internal display. |
| 89 // See ash::test::DisplayManagerTestApi::SetFirstDisplayAsInternalDisplay for |
| 90 // more details. |
| 91 int64_t SetFirstDisplayAsInternalDisplay(); |
| 92 |
| 87 // Returns a root Window. Usually this is the active root Window, but that | 93 // Returns a root Window. Usually this is the active root Window, but that |
| 88 // method can return NULL sometimes, and in those cases, we fall back on the | 94 // method can return NULL sometimes, and in those cases, we fall back on the |
| 89 // primary root Window. | 95 // primary root Window. |
| 90 aura::Window* CurrentContext(); | 96 aura::Window* CurrentContext(); |
| 91 | 97 |
| 92 // Creates and shows a widget. See ash/public/cpp/shell_window_ids.h for | 98 // Creates and shows a widget. See ash/public/cpp/shell_window_ids.h for |
| 93 // values for |container_id|. | 99 // values for |container_id|. |
| 94 static std::unique_ptr<views::Widget> CreateTestWidget( | 100 static std::unique_ptr<views::Widget> CreateTestWidget( |
| 95 views::WidgetDelegate* delegate, | 101 views::WidgetDelegate* delegate, |
| 96 int container_id, | 102 int container_id, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 ~NoSessionAshTestBase() override {} | 215 ~NoSessionAshTestBase() override {} |
| 210 | 216 |
| 211 private: | 217 private: |
| 212 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 218 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 213 }; | 219 }; |
| 214 | 220 |
| 215 } // namespace test | 221 } // namespace test |
| 216 } // namespace ash | 222 } // namespace ash |
| 217 | 223 |
| 218 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 224 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |