Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Side by Side Diff: ui/display/chromeos/test/test_display_layout_manager.cc

Issue 1557683002: Convert Pass()→std::move() in //ui (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 "ui/display/chromeos/test/test_display_layout_manager.h" 5 #include "ui/display/chromeos/test/test_display_layout_manager.h"
6 6
7 #include <utility>
8
7 #include "ui/display/types/display_snapshot.h" 9 #include "ui/display/types/display_snapshot.h"
8 10
9 namespace ui { 11 namespace ui {
10 namespace test { 12 namespace test {
11 13
12 TestDisplayLayoutManager::TestDisplayLayoutManager( 14 TestDisplayLayoutManager::TestDisplayLayoutManager(
13 ScopedVector<DisplaySnapshot> displays, 15 ScopedVector<DisplaySnapshot> displays,
14 MultipleDisplayState display_state) 16 MultipleDisplayState display_state)
15 : displays_(displays.Pass()), display_state_(display_state) { 17 : displays_(std::move(displays)), display_state_(display_state) {
16 } 18 }
17 19
18 TestDisplayLayoutManager::~TestDisplayLayoutManager() { 20 TestDisplayLayoutManager::~TestDisplayLayoutManager() {
19 } 21 }
20 22
21 DisplayConfigurator::StateController* 23 DisplayConfigurator::StateController*
22 TestDisplayLayoutManager::GetStateController() const { 24 TestDisplayLayoutManager::GetStateController() const {
23 return nullptr; 25 return nullptr;
24 } 26 }
25 27
(...skipping 25 matching lines...) Expand all
51 const { 53 const {
52 return displays_.get(); 54 return displays_.get();
53 } 55 }
54 56
55 bool TestDisplayLayoutManager::IsMirroring() const { 57 bool TestDisplayLayoutManager::IsMirroring() const {
56 return display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR; 58 return display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR;
57 } 59 }
58 60
59 } // namespace test 61 } // namespace test
60 } // namespace ui 62 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698