| 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_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_MANAGER_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 23 matching lines...) Expand all Loading... |
| 34 typedef _XRROutputInfo XRROutputInfo; | 34 typedef _XRROutputInfo XRROutputInfo; |
| 35 struct _XRRScreenResources; | 35 struct _XRRScreenResources; |
| 36 typedef _XRRScreenResources XRRScreenResources; | 36 typedef _XRRScreenResources XRRScreenResources; |
| 37 struct _XRRCrtcGamma; | 37 struct _XRRCrtcGamma; |
| 38 typedef _XRRCrtcGamma XRRCrtcGamma; | 38 typedef _XRRCrtcGamma XRRCrtcGamma; |
| 39 | 39 |
| 40 extern "C" { | 40 extern "C" { |
| 41 void XRRFreeScreenResources(XRRScreenResources* resources); | 41 void XRRFreeScreenResources(XRRScreenResources* resources); |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace ui { | 44 namespace display { |
| 45 | 45 |
| 46 class DisplayModeX11; | 46 class DisplayModeX11; |
| 47 class DisplaySnapshotX11; | 47 class DisplaySnapshotX11; |
| 48 class NativeDisplayEventDispatcherX11; | 48 class NativeDisplayEventDispatcherX11; |
| 49 | 49 |
| 50 class DISPLAY_MANAGER_EXPORT NativeDisplayDelegateX11 | 50 class DISPLAY_MANAGER_EXPORT NativeDisplayDelegateX11 |
| 51 : public NativeDisplayDelegate { | 51 : public NativeDisplayDelegate { |
| 52 public: | 52 public: |
| 53 // Helper class that allows NativeDisplayEventDispatcherX11 and | 53 // Helper class that allows NativeDisplayEventDispatcherX11 and |
| 54 // NativeDisplayDelegateX11::PlatformEventObserverX11 to interact with this | 54 // NativeDisplayDelegateX11::PlatformEventObserverX11 to interact with this |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void CreateFrameBuffer(const gfx::Size& size) override; | 91 void CreateFrameBuffer(const gfx::Size& size) override; |
| 92 void GetHDCPState(const DisplaySnapshot& output, | 92 void GetHDCPState(const DisplaySnapshot& output, |
| 93 const GetHDCPStateCallback& callback) override; | 93 const GetHDCPStateCallback& callback) override; |
| 94 void SetHDCPState(const DisplaySnapshot& output, | 94 void SetHDCPState(const DisplaySnapshot& output, |
| 95 HDCPState state, | 95 HDCPState state, |
| 96 const SetHDCPStateCallback& callback) override; | 96 const SetHDCPStateCallback& callback) override; |
| 97 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 97 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
| 98 const DisplaySnapshot& output) override; | 98 const DisplaySnapshot& output) override; |
| 99 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 99 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
| 100 ColorCalibrationProfile new_profile) override; | 100 ColorCalibrationProfile new_profile) override; |
| 101 bool SetColorCorrection(const ui::DisplaySnapshot& output, | 101 bool SetColorCorrection(const DisplaySnapshot& output, |
| 102 const std::vector<GammaRampRGBEntry>& degamma_lut, | 102 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 103 const std::vector<GammaRampRGBEntry>& gamma_lut, | 103 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 104 const std::vector<float>& correction_matrix) override; | 104 const std::vector<float>& correction_matrix) override; |
| 105 void AddObserver(NativeDisplayObserver* observer) override; | 105 void AddObserver(NativeDisplayObserver* observer) override; |
| 106 void RemoveObserver(NativeDisplayObserver* observer) override; | 106 void RemoveObserver(NativeDisplayObserver* observer) override; |
| 107 display::FakeDisplayController* GetFakeDisplayController() override; | 107 FakeDisplayController* GetFakeDisplayController() override; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 class HelperDelegateX11; | 110 class HelperDelegateX11; |
| 111 | 111 |
| 112 // Parses all the modes made available by |screen_|. | 112 // Parses all the modes made available by |screen_|. |
| 113 void InitModes(); | 113 void InitModes(); |
| 114 | 114 |
| 115 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 115 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
| 116 // on the passed-in information. | 116 // on the passed-in information. |
| 117 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, | 117 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // List of observers waiting for display configuration change events. | 169 // List of observers waiting for display configuration change events. |
| 170 base::ObserverList<NativeDisplayObserver> observers_; | 170 base::ObserverList<NativeDisplayObserver> observers_; |
| 171 | 171 |
| 172 // A background color used during boot time + multi displays. | 172 // A background color used during boot time + multi displays. |
| 173 uint32_t background_color_argb_; | 173 uint32_t background_color_argb_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace ui | 178 } // namespace display |
| 179 | 179 |
| 180 #endif // UI_DISPLAY_MANAGER_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 180 #endif // UI_DISPLAY_MANAGER_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |