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

Side by Side Diff: ui/display/chromeos/x11/native_display_delegate_x11.h

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Fix windows compile problems. Created 4 years, 3 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_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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 96 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
97 const DisplaySnapshot& output) override; 97 const DisplaySnapshot& output) override;
98 bool SetColorCalibrationProfile(const DisplaySnapshot& output, 98 bool SetColorCalibrationProfile(const DisplaySnapshot& output,
99 ColorCalibrationProfile new_profile) override; 99 ColorCalibrationProfile new_profile) override;
100 bool SetColorCorrection(const ui::DisplaySnapshot& output, 100 bool SetColorCorrection(const ui::DisplaySnapshot& output,
101 const std::vector<GammaRampRGBEntry>& degamma_lut, 101 const std::vector<GammaRampRGBEntry>& degamma_lut,
102 const std::vector<GammaRampRGBEntry>& gamma_lut, 102 const std::vector<GammaRampRGBEntry>& gamma_lut,
103 const std::vector<float>& correction_matrix) override; 103 const std::vector<float>& correction_matrix) override;
104 void AddObserver(NativeDisplayObserver* observer) override; 104 void AddObserver(NativeDisplayObserver* observer) override;
105 void RemoveObserver(NativeDisplayObserver* observer) override; 105 void RemoveObserver(NativeDisplayObserver* observer) override;
106 display::FakeDisplayController* GetFakeDisplayController() override;
106 107
107 private: 108 private:
108 class HelperDelegateX11; 109 class HelperDelegateX11;
109 110
110 // Parses all the modes made available by |screen_|. 111 // Parses all the modes made available by |screen_|.
111 void InitModes(); 112 void InitModes();
112 113
113 // Helper method for GetOutputs() that returns an OutputSnapshot struct based 114 // Helper method for GetOutputs() that returns an OutputSnapshot struct based
114 // on the passed-in information. 115 // on the passed-in information.
115 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, 116 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 171
171 // A background color used during boot time + multi displays. 172 // A background color used during boot time + multi displays.
172 uint32_t background_color_argb_; 173 uint32_t background_color_argb_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11);
175 }; 176 };
176 177
177 } // namespace ui 178 } // namespace ui
178 179
179 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 180 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/test/test_native_display_delegate.cc ('k') | ui/display/chromeos/x11/native_display_delegate_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698