screen_info.cc 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/display/screen_info.h"
  5. namespace display {
  6. ScreenInfo::ScreenInfo() = default;
  7. ScreenInfo::ScreenInfo(const ScreenInfo& other) = default;
  8. ScreenInfo::~ScreenInfo() = default;
  9. ScreenInfo& ScreenInfo::operator=(const ScreenInfo& other) = default;
  10. bool ScreenInfo::operator==(const ScreenInfo& other) const {
  11. return device_scale_factor == other.device_scale_factor &&
  12. display_color_spaces == other.display_color_spaces &&
  13. depth == other.depth &&
  14. depth_per_component == other.depth_per_component &&
  15. is_monochrome == other.is_monochrome &&
  16. display_frequency == other.display_frequency && rect == other.rect &&
  17. available_rect == other.available_rect &&
  18. orientation_type == other.orientation_type &&
  19. orientation_angle == other.orientation_angle &&
  20. is_extended == other.is_extended && is_primary == other.is_primary &&
  21. is_internal == other.is_internal && label == other.label &&
  22. display_id == other.display_id;
  23. }
  24. bool ScreenInfo::operator!=(const ScreenInfo& other) const {
  25. return !operator==(other);
  26. }
  27. } // namespace display