| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Returns the WmShelf for the primary display. | 70 // Returns the WmShelf for the primary display. |
| 71 static WmShelf* GetPrimaryShelf(); | 71 static WmShelf* GetPrimaryShelf(); |
| 72 | 72 |
| 73 // Returns the system tray on the primary display. | 73 // Returns the system tray on the primary display. |
| 74 static SystemTray* GetPrimarySystemTray(); | 74 static SystemTray* GetPrimarySystemTray(); |
| 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 // Set the 1st display as an internal display and returns the display Id for |
| 81 // the internal display. |
| 82 // See ash::test::DisplayManagerTestApi::SetFirstDisplayAsInternalDisplay for |
| 83 // more details. |
| 84 int64_t SetFirstDisplayAsInternalDisplay(); |
| 85 |
| 80 // Returns a root Window. Usually this is the active root Window, but that | 86 // 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 | 87 // method can return NULL sometimes, and in those cases, we fall back on the |
| 82 // primary root Window. | 88 // primary root Window. |
| 83 aura::Window* CurrentContext(); | 89 aura::Window* CurrentContext(); |
| 84 | 90 |
| 85 // Creates and shows a widget. See ash/common/shell_window_ids.h for values | 91 // Creates and shows a widget. See ash/common/shell_window_ids.h for values |
| 86 // for |container_id|. | 92 // for |container_id|. |
| 87 static std::unique_ptr<views::Widget> CreateTestWidget( | 93 static std::unique_ptr<views::Widget> CreateTestWidget( |
| 88 views::WidgetDelegate* delegate, | 94 views::WidgetDelegate* delegate, |
| 89 int container_id, | 95 int container_id, |
| (...skipping 102 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 |