| 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 |
| 20 struct GammaRampRGBEntry; |
| 19 class DisplayMode; | 21 class DisplayMode; |
| 20 class DisplaySnapshot; | 22 class DisplaySnapshot; |
| 21 | 23 |
| 22 namespace test { | 24 namespace test { |
| 23 | 25 |
| 24 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to | 26 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to |
| 25 // describe various actions that were performed. | 27 // describe various actions that were performed. |
| 26 const char kInitXRandR[] = "init"; | 28 const char kInitXRandR[] = "init"; |
| 27 const char kGrab[] = "grab"; | 29 const char kGrab[] = "grab"; |
| 28 const char kUngrab[] = "ungrab"; | 30 const char kUngrab[] = "ungrab"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() | 57 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() |
| 56 // call. | 58 // call. |
| 57 std::string GetFramebufferAction(const gfx::Size& size, | 59 std::string GetFramebufferAction(const gfx::Size& size, |
| 58 const DisplaySnapshot* out1, | 60 const DisplaySnapshot* out1, |
| 59 const DisplaySnapshot* out2); | 61 const DisplaySnapshot* out2); |
| 60 | 62 |
| 61 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. | 63 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. |
| 62 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, | 64 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, |
| 63 HDCPState state); | 65 HDCPState state); |
| 64 | 66 |
| 67 // Returns a string describing a TestNativeDisplayDelegate::SetGammaRamp() call; |
| 68 std::string SetGammaRampAction(const ui::DisplaySnapshot& output, |
| 69 const std::vector<GammaRampRGBEntry>& lut); |
| 65 // Joins a sequence of strings describing actions (e.g. kScreenDim) such | 70 // Joins a sequence of strings describing actions (e.g. kScreenDim) such |
| 66 // that they can be compared against a string returned by | 71 // that they can be compared against a string returned by |
| 67 // ActionLogger::GetActionsAndClear(). The list of actions must be | 72 // ActionLogger::GetActionsAndClear(). The list of actions must be |
| 68 // terminated by a NULL pointer. | 73 // terminated by a NULL pointer. |
| 69 std::string JoinActions(const char* action, ...); | 74 std::string JoinActions(const char* action, ...); |
| 70 | 75 |
| 71 } // namespace test | 76 } // namespace test |
| 72 } // namespace ui | 77 } // namespace ui |
| 73 | 78 |
| 74 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ | 79 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ |
| OLD | NEW |