| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "content/public/test/test_browser_thread_bundle.h" | 17 #include "content/public/test/test_browser_thread_bundle.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
| 20 #include "ui/gfx/display.h" | 20 #include "ui/display/display.h" |
| 21 #include "ui/wm/public/window_types.h" | 21 #include "ui/wm/public/window_types.h" |
| 22 | 22 |
| 23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
| 24 #include "ui/base/win/scoped_ole_initializer.h" | 24 #include "ui/base/win/scoped_ole_initializer.h" |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Rect; | 28 class Rect; |
| 29 } | 29 } |
| 30 | 30 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 protected: | 98 protected: |
| 99 enum UserSessionBlockReason { | 99 enum UserSessionBlockReason { |
| 100 FIRST_BLOCK_REASON, | 100 FIRST_BLOCK_REASON, |
| 101 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, | 101 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, |
| 102 BLOCKED_BY_LOGIN_SCREEN, | 102 BLOCKED_BY_LOGIN_SCREEN, |
| 103 BLOCKED_BY_USER_ADDING_SCREEN, | 103 BLOCKED_BY_USER_ADDING_SCREEN, |
| 104 NUMBER_OF_BLOCK_REASONS | 104 NUMBER_OF_BLOCK_REASONS |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 // Returns the rotation currentl active for the display |id|. | 107 // Returns the rotation currentl active for the display |id|. |
| 108 static gfx::Display::Rotation GetActiveDisplayRotation(int64_t id); | 108 static display::Display::Rotation GetActiveDisplayRotation(int64_t id); |
| 109 | 109 |
| 110 // Returns the rotation currently active for the internal display. | 110 // Returns the rotation currently active for the internal display. |
| 111 static gfx::Display::Rotation GetCurrentInternalDisplayRotation(); | 111 static display::Display::Rotation GetCurrentInternalDisplayRotation(); |
| 112 | 112 |
| 113 // Proxy to AshTestHelper::SupportsMultipleDisplays(). | 113 // Proxy to AshTestHelper::SupportsMultipleDisplays(). |
| 114 static bool SupportsMultipleDisplays(); | 114 static bool SupportsMultipleDisplays(); |
| 115 | 115 |
| 116 // Proxy to AshTestHelper::SupportsHostWindowResize(). | 116 // Proxy to AshTestHelper::SupportsHostWindowResize(). |
| 117 static bool SupportsHostWindowResize(); | 117 static bool SupportsHostWindowResize(); |
| 118 | 118 |
| 119 void set_start_session(bool start_session) { start_session_ = start_session; } | 119 void set_start_session(bool start_session) { start_session_ = start_session; } |
| 120 | 120 |
| 121 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } | 121 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 ~NoSessionAshTestBase() override {} | 167 ~NoSessionAshTestBase() override {} |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 170 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace test | 173 } // namespace test |
| 174 } // namespace ash | 174 } // namespace ash |
| 175 | 175 |
| 176 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 176 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |