OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_CHROMEOS_X11_DISPLAY_MODE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_ |
6 #define UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_ |
7 | 7 |
8 #include "ui/display/display_export.h" | 8 #include "ui/display/display_export.h" |
9 #include "ui/display/types/chromeos/display_mode.h" | 9 #include "ui/display/types/display_mode.h" |
10 | 10 |
11 // Forward declare from Xlib and Xrandr. | 11 // Forward declare from Xlib and Xrandr. |
12 typedef unsigned long XID; | 12 typedef unsigned long XID; |
13 typedef XID RRMode; | 13 typedef XID RRMode; |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 class DISPLAY_EXPORT DisplayModeX11 : public DisplayMode { | 17 class DISPLAY_EXPORT DisplayModeX11 : public DisplayMode { |
18 public: | 18 public: |
19 DisplayModeX11(const gfx::Size& size, | 19 DisplayModeX11(const gfx::Size& size, |
20 bool interlaced, | 20 bool interlaced, |
21 float refresh_rate, | 21 float refresh_rate, |
22 RRMode mode_id); | 22 RRMode mode_id); |
23 virtual ~DisplayModeX11(); | 23 virtual ~DisplayModeX11(); |
24 | 24 |
25 RRMode mode_id() const { return mode_id_; } | 25 RRMode mode_id() const { return mode_id_; } |
26 | 26 |
27 private: | 27 private: |
28 RRMode mode_id_; | 28 RRMode mode_id_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(DisplayModeX11); | 30 DISALLOW_COPY_AND_ASSIGN(DisplayModeX11); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace ui | 33 } // namespace ui |
34 | 34 |
35 #endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_ | 35 #endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_ |
OLD | NEW |