| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_MODE_H_ |
| 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_MODE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/display/display_export.h" |
| 10 #include "ui/gfx/geometry/size.h" |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 // This class represents the basic information for a native mode. Platforms will |
| 15 // extend this class to add platform specific information about the mode. |
| 16 class DISPLAY_EXPORT DisplayMode { |
| 17 public: |
| 18 DisplayMode(const gfx::Size& size, bool interlaced, float refresh_rate); |
| 19 virtual ~DisplayMode(); |
| 20 |
| 21 const gfx::Size& size() const { return size_; } |
| 22 bool is_interlaced() const { return is_interlaced_; } |
| 23 float refresh_rate() const { return refresh_rate_; } |
| 24 |
| 25 private: |
| 26 gfx::Size size_; |
| 27 bool is_interlaced_; |
| 28 float refresh_rate_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(DisplayMode); |
| 31 }; |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_MODE_H_ |
| OLD | NEW |