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

Side by Side Diff: ui/display/manager/managed_display_info.h

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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
« no previous file with comments | « ui/display/manager/display_manager.cc ('k') | ui/display/manager/managed_display_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_ 5 #ifndef UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_
6 #define UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_ 6 #define UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <array> 10 #include <array>
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 TouchCalibrationData 279 TouchCalibrationData
280 GetTouchCalibrationData() const & { return touch_calibration_data_; } 280 GetTouchCalibrationData() const & { return touch_calibration_data_; }
281 bool has_touch_calibration_data() const 281 bool has_touch_calibration_data() const
282 { return has_touch_calibration_data_; } 282 { return has_touch_calibration_data_; }
283 void clear_touch_calibration_data() { has_touch_calibration_data_ = false; } 283 void clear_touch_calibration_data() { has_touch_calibration_data_ = false; }
284 284
285 // Returns the native mode size. If a native mode is not present, return an 285 // Returns the native mode size. If a native mode is not present, return an
286 // empty size. 286 // empty size.
287 gfx::Size GetNativeModeSize() const; 287 gfx::Size GetNativeModeSize() const;
288 288
289 ui::ColorCalibrationProfile color_profile() const { return color_profile_; } 289 ColorCalibrationProfile color_profile() const { return color_profile_; }
290 290
291 // Sets the color profile. It will ignore if the specified |profile| is not in 291 // Sets the color profile. It will ignore if the specified |profile| is not in
292 // |available_color_profiles_|. 292 // |available_color_profiles_|.
293 void SetColorProfile(ui::ColorCalibrationProfile profile); 293 void SetColorProfile(ColorCalibrationProfile profile);
294 294
295 // Returns true if |profile| is in |available_color_profiles_|. 295 // Returns true if |profile| is in |available_color_profiles_|.
296 bool IsColorProfileAvailable(ui::ColorCalibrationProfile profile) const; 296 bool IsColorProfileAvailable(ColorCalibrationProfile profile) const;
297 297
298 const std::vector<ui::ColorCalibrationProfile>& available_color_profiles() 298 const std::vector<ColorCalibrationProfile>& available_color_profiles() const {
299 const {
300 return available_color_profiles_; 299 return available_color_profiles_;
301 } 300 }
302 301
303 void set_available_color_profiles( 302 void set_available_color_profiles(
304 const std::vector<ui::ColorCalibrationProfile>& profiles) { 303 const std::vector<ColorCalibrationProfile>& profiles) {
305 available_color_profiles_ = profiles; 304 available_color_profiles_ = profiles;
306 } 305 }
307 306
308 bool is_aspect_preserving_scaling() const { 307 bool is_aspect_preserving_scaling() const {
309 return is_aspect_preserving_scaling_; 308 return is_aspect_preserving_scaling_;
310 } 309 }
311 310
312 void set_is_aspect_preserving_scaling(bool value) { 311 void set_is_aspect_preserving_scaling(bool value) {
313 is_aspect_preserving_scaling_ = value; 312 is_aspect_preserving_scaling_ = value;
314 } 313 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 bool is_aspect_preserving_scaling_; 378 bool is_aspect_preserving_scaling_;
380 379
381 // True if the displays' overscan inset should be cleared. This is 380 // True if the displays' overscan inset should be cleared. This is
382 // to distinguish the empty overscan insets from native display info. 381 // to distinguish the empty overscan insets from native display info.
383 bool clear_overscan_insets_; 382 bool clear_overscan_insets_;
384 383
385 // The list of modes supported by this display. 384 // The list of modes supported by this display.
386 ManagedDisplayModeList display_modes_; 385 ManagedDisplayModeList display_modes_;
387 386
388 // The current profile of the color calibration. 387 // The current profile of the color calibration.
389 ui::ColorCalibrationProfile color_profile_; 388 ColorCalibrationProfile color_profile_;
390 389
391 // The list of available variations for the color calibration. 390 // The list of available variations for the color calibration.
392 std::vector<ui::ColorCalibrationProfile> available_color_profiles_; 391 std::vector<ColorCalibrationProfile> available_color_profiles_;
393 392
394 // Maximum cursor size. 393 // Maximum cursor size.
395 gfx::Size maximum_cursor_size_; 394 gfx::Size maximum_cursor_size_;
396 395
397 // Information associated to touch calibration for the display. 396 // Information associated to touch calibration for the display.
398 TouchCalibrationData touch_calibration_data_; 397 TouchCalibrationData touch_calibration_data_;
399 398
400 // If you add a new member, you need to update Copy(). 399 // If you add a new member, you need to update Copy().
401 }; 400 };
402 401
403 // Resets the synthesized display id for testing. This 402 // Resets the synthesized display id for testing. This
404 // is necessary to avoid overflowing the output index. 403 // is necessary to avoid overflowing the output index.
405 void DISPLAY_MANAGER_EXPORT ResetDisplayIdForTest(); 404 void DISPLAY_MANAGER_EXPORT ResetDisplayIdForTest();
406 405
407 } // namespace display 406 } // namespace display
408 407
409 #endif // UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_ 408 #endif // UI_DISPLAY_MANAGER_MANAGED_DISPLAY_INFO_H_
OLDNEW
« no previous file with comments | « ui/display/manager/display_manager.cc ('k') | ui/display/manager/managed_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698