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_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const DisplaySnapshot& output) override; | 75 const DisplaySnapshot& output) override; |
76 bool SetColorCalibrationProfile( | 76 bool SetColorCalibrationProfile( |
77 const DisplaySnapshot& output, | 77 const DisplaySnapshot& output, |
78 ui::ColorCalibrationProfile new_profile) override; | 78 ui::ColorCalibrationProfile new_profile) override; |
79 bool SetColorCorrection(const ui::DisplaySnapshot& output, | 79 bool SetColorCorrection(const ui::DisplaySnapshot& output, |
80 const std::vector<GammaRampRGBEntry>& degamma_lut, | 80 const std::vector<GammaRampRGBEntry>& degamma_lut, |
81 const std::vector<GammaRampRGBEntry>& gamma_lut, | 81 const std::vector<GammaRampRGBEntry>& gamma_lut, |
82 const std::vector<float>& correction_matrix) override; | 82 const std::vector<float>& correction_matrix) override; |
83 void AddObserver(NativeDisplayObserver* observer) override; | 83 void AddObserver(NativeDisplayObserver* observer) override; |
84 void RemoveObserver(NativeDisplayObserver* observer) override; | 84 void RemoveObserver(NativeDisplayObserver* observer) override; |
| 85 display::FakeDisplayController* GetFakeDisplayController() override; |
85 | 86 |
86 private: | 87 private: |
87 bool Configure(const DisplaySnapshot& output, | 88 bool Configure(const DisplaySnapshot& output, |
88 const DisplayMode* mode, | 89 const DisplayMode* mode, |
89 const gfx::Point& origin); | 90 const gfx::Point& origin); |
90 | 91 |
91 // Outputs to be returned by GetDisplays(). | 92 // Outputs to be returned by GetDisplays(). |
92 std::vector<DisplaySnapshot*> outputs_; | 93 std::vector<DisplaySnapshot*> outputs_; |
93 | 94 |
94 // |max_configurable_pixels_| represents the maximum number of pixels that | 95 // |max_configurable_pixels_| represents the maximum number of pixels that |
(...skipping 15 matching lines...) Expand all Loading... |
110 | 111 |
111 ActionLogger* log_; // Not owned. | 112 ActionLogger* log_; // Not owned. |
112 | 113 |
113 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); | 114 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); |
114 }; | 115 }; |
115 | 116 |
116 } // namespace test | 117 } // namespace test |
117 } // namespace ui | 118 } // namespace ui |
118 | 119 |
119 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 120 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |