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.
5 #ifndef UI_DISPLAY_TYPES_DISPLAY_MODE_H_
6 #define UI_DISPLAY_TYPES_DISPLAY_MODE_H_
10 #include "base/macros.h"
11 #include "ui/display/types/display_types_export.h"
12 #include "ui/gfx/geometry/size.h"
16 // This class represents the basic information for a native mode. Platforms will
17 // extend this class to add platform specific information about the mode.
18 class DISPLAY_TYPES_EXPORT DisplayMode
{
20 DisplayMode(const gfx::Size
& size
, bool interlaced
, float refresh_rate
);
21 virtual ~DisplayMode();
23 const gfx::Size
& size() const { return size_
; }
24 bool is_interlaced() const { return is_interlaced_
; }
25 float refresh_rate() const { return refresh_rate_
; }
27 virtual std::string
ToString() const;
34 DISALLOW_COPY_AND_ASSIGN(DisplayMode
);
39 #endif // UI_DISPLAY_TYPES_DISPLAY_MODE_H_