| OLD | NEW | 
 | (Empty) | 
|   1 // Copyright 2015 The Chromium Authors. All rights reserved. |  | 
|   2 // Use of this source code is governed by a BSD-style license that can be |  | 
|   3 // found in the LICENSE file. |  | 
|   4  |  | 
|   5 #include "ui/display/chromeos/test/test_display_layout_manager.h" |  | 
|   6  |  | 
|   7 #include <utility> |  | 
|   8  |  | 
|   9 #include "ui/display/types/display_snapshot.h" |  | 
|  10  |  | 
|  11 namespace ui { |  | 
|  12 namespace test { |  | 
|  13  |  | 
|  14 TestDisplayLayoutManager::TestDisplayLayoutManager( |  | 
|  15     ScopedVector<DisplaySnapshot> displays, |  | 
|  16     MultipleDisplayState display_state) |  | 
|  17     : displays_(std::move(displays)), display_state_(display_state) { |  | 
|  18 } |  | 
|  19  |  | 
|  20 TestDisplayLayoutManager::~TestDisplayLayoutManager() { |  | 
|  21 } |  | 
|  22  |  | 
|  23 DisplayConfigurator::StateController* |  | 
|  24 TestDisplayLayoutManager::GetStateController() const { |  | 
|  25   return nullptr; |  | 
|  26 } |  | 
|  27  |  | 
|  28 DisplayConfigurator::SoftwareMirroringController* |  | 
|  29 TestDisplayLayoutManager::GetSoftwareMirroringController() const { |  | 
|  30   return nullptr; |  | 
|  31 } |  | 
|  32  |  | 
|  33 MultipleDisplayState TestDisplayLayoutManager::GetDisplayState() const { |  | 
|  34   return display_state_; |  | 
|  35 } |  | 
|  36  |  | 
|  37 chromeos::DisplayPowerState TestDisplayLayoutManager::GetPowerState() const { |  | 
|  38   NOTREACHED(); |  | 
|  39   return chromeos::DISPLAY_POWER_ALL_ON; |  | 
|  40 } |  | 
|  41  |  | 
|  42 bool TestDisplayLayoutManager::GetDisplayLayout( |  | 
|  43     const std::vector<DisplaySnapshot*>& displays, |  | 
|  44     MultipleDisplayState new_display_state, |  | 
|  45     chromeos::DisplayPowerState new_power_state, |  | 
|  46     std::vector<DisplayConfigureRequest>* requests, |  | 
|  47     gfx::Size* framebuffer_size) const { |  | 
|  48   NOTREACHED(); |  | 
|  49   return false; |  | 
|  50 } |  | 
|  51  |  | 
|  52 std::vector<DisplaySnapshot*> TestDisplayLayoutManager::GetDisplayStates() |  | 
|  53     const { |  | 
|  54   return displays_.get(); |  | 
|  55 } |  | 
|  56  |  | 
|  57 bool TestDisplayLayoutManager::IsMirroring() const { |  | 
|  58   return display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR; |  | 
|  59 } |  | 
|  60  |  | 
|  61 }  // namespace test |  | 
|  62 }  // namespace ui |  | 
| OLD | NEW |