OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_snapshot.h" | 5 #include "ui/display/chromeos/test/test_display_snapshot.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 TestDisplaySnapshot::TestDisplaySnapshot() | 8 TestDisplaySnapshot::TestDisplaySnapshot() |
9 : DisplaySnapshot(0, | 9 : DisplaySnapshot(0, |
10 gfx::Point(0, 0), | 10 gfx::Point(0, 0), |
11 gfx::Size(0, 0), | 11 gfx::Size(0, 0), |
12 DISPLAY_CONNECTION_TYPE_UNKNOWN, | 12 DISPLAY_CONNECTION_TYPE_UNKNOWN, |
13 false, | 13 false, |
14 false, | 14 false, |
15 std::string(), | 15 std::string(), |
16 base::FilePath(), | 16 base::FilePath(), |
17 std::vector<const DisplayMode*>(), | 17 std::vector<const DisplayMode*>(), |
18 std::vector<uint8_t>(), | |
19 NULL, | 18 NULL, |
20 NULL) {} | 19 NULL) {} |
21 | 20 |
22 TestDisplaySnapshot::TestDisplaySnapshot( | 21 TestDisplaySnapshot::TestDisplaySnapshot( |
23 int64_t display_id, | 22 int64_t display_id, |
24 const gfx::Point& origin, | 23 const gfx::Point& origin, |
25 const gfx::Size& physical_size, | 24 const gfx::Size& physical_size, |
26 DisplayConnectionType type, | 25 DisplayConnectionType type, |
27 bool is_aspect_preserving_scaling, | 26 bool is_aspect_preserving_scaling, |
28 int64_t product_id, | 27 int64_t product_id, |
29 const std::vector<const DisplayMode*>& modes, | 28 const std::vector<const DisplayMode*>& modes, |
30 const DisplayMode* current_mode, | 29 const DisplayMode* current_mode, |
31 const DisplayMode* native_mode) | 30 const DisplayMode* native_mode) |
32 : DisplaySnapshot(display_id, | 31 : DisplaySnapshot(display_id, |
33 origin, | 32 origin, |
34 physical_size, | 33 physical_size, |
35 type, | 34 type, |
36 is_aspect_preserving_scaling, | 35 is_aspect_preserving_scaling, |
37 false, | 36 false, |
38 std::string(), | 37 std::string(), |
39 base::FilePath(), | 38 base::FilePath(), |
40 modes, | 39 modes, |
41 std::vector<uint8_t>(), | |
42 current_mode, | 40 current_mode, |
43 native_mode) { | 41 native_mode) { |
44 product_id_ = product_id; | 42 product_id_ = product_id; |
45 } | 43 } |
46 | 44 |
47 TestDisplaySnapshot::~TestDisplaySnapshot() {} | 45 TestDisplaySnapshot::~TestDisplaySnapshot() {} |
48 | 46 |
49 std::string TestDisplaySnapshot::ToString() const { return ""; } | 47 std::string TestDisplaySnapshot::ToString() const { return ""; } |
50 | 48 |
51 } // namespace ui | 49 } // namespace ui |
OLD | NEW |