| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 ASH_DISPLAY_DISPLAY_INFO_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_INFO_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_INFO_H_ | 6 #define ASH_DISPLAY_DISPLAY_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 ui::ColorCalibrationProfile color_profile() const { | 158 ui::ColorCalibrationProfile color_profile() const { |
| 159 return color_profile_; | 159 return color_profile_; |
| 160 } | 160 } |
| 161 | 161 |
| 162 // Sets the color profile. It will ignore if the specified |profile| is not in | 162 // Sets the color profile. It will ignore if the specified |profile| is not in |
| 163 // |available_color_profiles_|. | 163 // |available_color_profiles_|. |
| 164 void SetColorProfile(ui::ColorCalibrationProfile profile); | 164 void SetColorProfile(ui::ColorCalibrationProfile profile); |
| 165 | 165 |
| 166 // Returns true if |profile| is in |available_color_profiles_|. |
| 167 bool IsColorProfileAvailable(ui::ColorCalibrationProfile profile) const; |
| 168 |
| 166 const std::vector<ui::ColorCalibrationProfile>& | 169 const std::vector<ui::ColorCalibrationProfile>& |
| 167 available_color_profiles() const { | 170 available_color_profiles() const { |
| 168 return available_color_profiles_; | 171 return available_color_profiles_; |
| 169 } | 172 } |
| 170 | 173 |
| 171 void set_available_color_profiles( | 174 void set_available_color_profiles( |
| 172 const std::vector<ui::ColorCalibrationProfile>& profiles) { | 175 std::vector<ui::ColorCalibrationProfile>& profiles) { |
| 173 available_color_profiles_ = profiles; | 176 available_color_profiles_.swap(profiles); |
| 174 } | 177 } |
| 175 | 178 |
| 176 // Returns a string representation of the DisplayInfo, excluding display | 179 // Returns a string representation of the DisplayInfo, excluding display |
| 177 // modes. | 180 // modes. |
| 178 std::string ToString() const; | 181 std::string ToString() const; |
| 179 | 182 |
| 180 // Returns a string representation of the DisplayInfo, including display | 183 // Returns a string representation of the DisplayInfo, including display |
| 181 // modes. | 184 // modes. |
| 182 std::string ToFullString() const; | 185 std::string ToFullString() const; |
| 183 | 186 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 ui::ColorCalibrationProfile color_profile_; | 222 ui::ColorCalibrationProfile color_profile_; |
| 220 | 223 |
| 221 // The list of available variations for the color calibration. | 224 // The list of available variations for the color calibration. |
| 222 std::vector<ui::ColorCalibrationProfile> available_color_profiles_; | 225 std::vector<ui::ColorCalibrationProfile> available_color_profiles_; |
| 223 }; | 226 }; |
| 224 | 227 |
| 225 } // namespace internal | 228 } // namespace internal |
| 226 } // namespace ash | 229 } // namespace ash |
| 227 | 230 |
| 228 #endif // ASH_DISPLAY_DISPLAY_INFO_H_ | 231 #endif // ASH_DISPLAY_DISPLAY_INFO_H_ |
| OLD | NEW |