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 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 6 #define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
9 | 10 |
10 #include "ui/display/types/display_constants.h" | 11 #include "ui/display/types/display_constants.h" |
11 | 12 |
12 namespace gfx { | 13 namespace gfx { |
13 class Point; | 14 class Point; |
14 class Size; | 15 class Size; |
15 } // namespace gfx | 16 } // namespace gfx |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 | 19 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() | 56 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() |
56 // call. | 57 // call. |
57 std::string GetFramebufferAction(const gfx::Size& size, | 58 std::string GetFramebufferAction(const gfx::Size& size, |
58 const DisplaySnapshot* out1, | 59 const DisplaySnapshot* out1, |
59 const DisplaySnapshot* out2); | 60 const DisplaySnapshot* out2); |
60 | 61 |
61 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. | 62 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. |
62 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, | 63 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, |
63 HDCPState state); | 64 HDCPState state); |
64 | 65 |
| 66 // Returns a string describing a TestNativeDisplayDelegate::SetGammaRamp() call; |
| 67 std::string SetGammaRampAction(const ui::DisplaySnapshot& output, |
| 68 const std::vector<uint16_t>& r, |
| 69 const std::vector<uint16_t>& g, |
| 70 const std::vector<uint16_t>& b); |
| 71 |
65 // Joins a sequence of strings describing actions (e.g. kScreenDim) such | 72 // Joins a sequence of strings describing actions (e.g. kScreenDim) such |
66 // that they can be compared against a string returned by | 73 // that they can be compared against a string returned by |
67 // ActionLogger::GetActionsAndClear(). The list of actions must be | 74 // ActionLogger::GetActionsAndClear(). The list of actions must be |
68 // terminated by a NULL pointer. | 75 // terminated by a NULL pointer. |
69 std::string JoinActions(const char* action, ...); | 76 std::string JoinActions(const char* action, ...); |
70 | 77 |
71 } // namespace test | 78 } // namespace test |
72 } // namespace ui | 79 } // namespace ui |
73 | 80 |
74 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 81 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
OLD | NEW |