| 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_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 6 #define UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ui/display/types/display_constants.h" | 13 #include "ui/display/types/display_constants.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Point; | 16 class Point; |
| 17 class Size; | 17 class Size; |
| 18 } // namespace gfx | 18 } // namespace gfx |
| 19 | 19 |
| 20 namespace ui { | 20 namespace display { |
| 21 | 21 |
| 22 struct GammaRampRGBEntry; | 22 struct GammaRampRGBEntry; |
| 23 class DisplayMode; | 23 class DisplayMode; |
| 24 class DisplaySnapshot; | 24 class DisplaySnapshot; |
| 25 | 25 |
| 26 namespace test { | 26 namespace test { |
| 27 | 27 |
| 28 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to | 28 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to |
| 29 // describe various actions that were performed. | 29 // describe various actions that were performed. |
| 30 const char kInitXRandR[] = "init"; | 30 const char kInitXRandR[] = "init"; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const DisplaySnapshot* out1, | 62 const DisplaySnapshot* out1, |
| 63 const DisplaySnapshot* out2); | 63 const DisplaySnapshot* out2); |
| 64 | 64 |
| 65 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. | 65 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. |
| 66 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, | 66 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, |
| 67 HDCPState state); | 67 HDCPState state); |
| 68 | 68 |
| 69 // Returns a string describing a TestNativeDisplayDelegate::SetColorCorrection() | 69 // Returns a string describing a TestNativeDisplayDelegate::SetColorCorrection() |
| 70 // call; | 70 // call; |
| 71 std::string SetColorCorrectionAction( | 71 std::string SetColorCorrectionAction( |
| 72 const ui::DisplaySnapshot& output, | 72 const DisplaySnapshot& output, |
| 73 const std::vector<GammaRampRGBEntry>& degamma_lut, | 73 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 74 const std::vector<GammaRampRGBEntry>& gamma_lut, | 74 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 75 const std::vector<float>& correction_matrix); | 75 const std::vector<float>& correction_matrix); |
| 76 // Joins a sequence of strings describing actions (e.g. kScreenDim) such | 76 // Joins a sequence of strings describing actions (e.g. kScreenDim) such |
| 77 // that they can be compared against a string returned by | 77 // that they can be compared against a string returned by |
| 78 // ActionLogger::GetActionsAndClear(). The list of actions must be | 78 // ActionLogger::GetActionsAndClear(). The list of actions must be |
| 79 // terminated by a NULL pointer. | 79 // terminated by a NULL pointer. |
| 80 std::string JoinActions(const char* action, ...); | 80 std::string JoinActions(const char* action, ...); |
| 81 | 81 |
| 82 } // namespace test | 82 } // namespace test |
| 83 } // namespace ui | 83 } // namespace display |
| 84 | 84 |
| 85 #endif // UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 85 #endif // UI_DISPLAY_MANAGER_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
| OLD | NEW |