| 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_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const DisplayMode* mode, | 85 const DisplayMode* mode, |
| 86 const gfx::Point& origin, | 86 const gfx::Point& origin, |
| 87 const ConfigureCallback& callback) override; | 87 const ConfigureCallback& callback) override; |
| 88 void CreateFrameBuffer(const gfx::Size& size) override; | 88 void CreateFrameBuffer(const gfx::Size& size) override; |
| 89 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; | 89 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; |
| 90 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; | 90 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; |
| 91 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 91 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
| 92 const DisplaySnapshot& output) override; | 92 const DisplaySnapshot& output) override; |
| 93 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 93 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
| 94 ColorCalibrationProfile new_profile) override; | 94 ColorCalibrationProfile new_profile) override; |
| 95 bool SetGammaRamp(const ui::DisplaySnapshot& output, |
| 96 const std::vector<GammaRampRGBEntry>& lut) override; |
| 95 void AddObserver(NativeDisplayObserver* observer) override; | 97 void AddObserver(NativeDisplayObserver* observer) override; |
| 96 void RemoveObserver(NativeDisplayObserver* observer) override; | 98 void RemoveObserver(NativeDisplayObserver* observer) override; |
| 97 | 99 |
| 98 private: | 100 private: |
| 99 class HelperDelegateX11; | 101 class HelperDelegateX11; |
| 100 | 102 |
| 101 // Parses all the modes made available by |screen_|. | 103 // Parses all the modes made available by |screen_|. |
| 102 void InitModes(); | 104 void InitModes(); |
| 103 | 105 |
| 104 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 106 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 159 |
| 158 // A background color used during boot time + multi displays. | 160 // A background color used during boot time + multi displays. |
| 159 uint32_t background_color_argb_; | 161 uint32_t background_color_argb_; |
| 160 | 162 |
| 161 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 163 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 } // namespace ui | 166 } // namespace ui |
| 165 | 167 |
| 166 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 168 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |