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 #include "ash/test/ash_test_base.h" | 5 #include "ash/test/ash_test_base.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/common/wm/window_positioner.h" | 10 #include "ash/common/wm/window_positioner.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 display::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() { | 201 display::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() { |
202 return GetActiveDisplayRotation(display::Display::InternalDisplayId()); | 202 return GetActiveDisplayRotation(display::Display::InternalDisplayId()); |
203 } | 203 } |
204 | 204 |
205 // static | 205 // static |
206 bool AshTestBase::SupportsMultipleDisplays() { | 206 bool AshTestBase::SupportsMultipleDisplays() { |
207 return AshTestHelper::SupportsMultipleDisplays(); | 207 return AshTestHelper::SupportsMultipleDisplays(); |
208 } | 208 } |
209 | 209 |
210 // static | 210 // static |
211 bool AshTestBase::SupportsHostWindowResize() { | |
212 return AshTestHelper::SupportsHostWindowResize(); | |
213 } | |
214 | |
215 void AshTestBase::UpdateDisplay(const std::string& display_specs) { | 211 void AshTestBase::UpdateDisplay(const std::string& display_specs) { |
216 DisplayManagerTestApi().UpdateDisplay(display_specs); | 212 DisplayManagerTestApi().UpdateDisplay(display_specs); |
217 } | 213 } |
218 | 214 |
219 aura::Window* AshTestBase::CurrentContext() { | 215 aura::Window* AshTestBase::CurrentContext() { |
220 return ash_test_helper_->CurrentContext(); | 216 return ash_test_helper_->CurrentContext(); |
221 } | 217 } |
222 | 218 |
223 // static | 219 // static |
224 std::unique_ptr<views::Widget> AshTestBase::CreateTestWidget( | 220 std::unique_ptr<views::Widget> AshTestBase::CreateTestWidget( |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 367 |
372 void AshTestBase::DisableIME() { | 368 void AshTestBase::DisableIME() { |
373 Shell::GetInstance()->RemovePreTargetHandler( | 369 Shell::GetInstance()->RemovePreTargetHandler( |
374 Shell::GetInstance() | 370 Shell::GetInstance() |
375 ->window_tree_host_manager() | 371 ->window_tree_host_manager() |
376 ->input_method_event_handler()); | 372 ->input_method_event_handler()); |
377 } | 373 } |
378 | 374 |
379 } // namespace test | 375 } // namespace test |
380 } // namespace ash | 376 } // namespace ash |
OLD | NEW |