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

Side by Side Diff: ui/display/chromeos/test/action_logger_util.h

Issue 1118373006: Revert of Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 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>
10 9
11 #include "ui/display/types/display_constants.h" 10 #include "ui/display/types/display_constants.h"
12 11
13 namespace gfx { 12 namespace gfx {
14 class Point; 13 class Point;
15 class Size; 14 class Size;
16 } // namespace gfx 15 } // namespace gfx
17 16
18 namespace ui { 17 namespace ui {
19 18
20 struct GammaRampRGBEntry;
21 class DisplayMode; 19 class DisplayMode;
22 class DisplaySnapshot; 20 class DisplaySnapshot;
23 21
24 namespace test { 22 namespace test {
25 23
26 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to 24 // Strings returned by TestNativeDisplayDelegate::GetActionsAndClear() to
27 // describe various actions that were performed. 25 // describe various actions that were performed.
28 const char kInitXRandR[] = "init"; 26 const char kInitXRandR[] = "init";
29 const char kGrab[] = "grab"; 27 const char kGrab[] = "grab";
30 const char kUngrab[] = "ungrab"; 28 const char kUngrab[] = "ungrab";
(...skipping 26 matching lines...) Expand all
57 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer() 55 // Returns a string describing a TestNativeDisplayDelegate::CreateFramebuffer()
58 // call. 56 // call.
59 std::string GetFramebufferAction(const gfx::Size& size, 57 std::string GetFramebufferAction(const gfx::Size& size,
60 const DisplaySnapshot* out1, 58 const DisplaySnapshot* out1,
61 const DisplaySnapshot* out2); 59 const DisplaySnapshot* out2);
62 60
63 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call. 61 // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call.
64 std::string GetSetHDCPStateAction(const DisplaySnapshot& output, 62 std::string GetSetHDCPStateAction(const DisplaySnapshot& output,
65 HDCPState state); 63 HDCPState state);
66 64
67 // Returns a string describing a TestNativeDisplayDelegate::SetGammaRamp() call;
68 std::string SetGammaRampAction(const ui::DisplaySnapshot& output,
69 const std::vector<GammaRampRGBEntry>& lut);
70 // Joins a sequence of strings describing actions (e.g. kScreenDim) such 65 // Joins a sequence of strings describing actions (e.g. kScreenDim) such
71 // that they can be compared against a string returned by 66 // that they can be compared against a string returned by
72 // ActionLogger::GetActionsAndClear(). The list of actions must be 67 // ActionLogger::GetActionsAndClear(). The list of actions must be
73 // terminated by a NULL pointer. 68 // terminated by a NULL pointer.
74 std::string JoinActions(const char* action, ...); 69 std::string JoinActions(const char* action, ...);
75 70
76 } // namespace test 71 } // namespace test
77 } // namespace ui 72 } // namespace ui
78 73
79 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_ 74 #endif // UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/display_configurator.cc ('k') | ui/display/chromeos/test/action_logger_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698