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

Unified Diff: ui/display/chromeos/x11/display_mode_x11.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ordering Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/display/chromeos/x11/display_mode_x11.h
diff --git a/ui/display/chromeos/x11/display_mode_x11.h b/ui/display/chromeos/x11/display_mode_x11.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa6739d3ba035290f20e02d2be2ab5929b5a4b37
--- /dev/null
+++ b/ui/display/chromeos/x11/display_mode_x11.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_
+#define UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_
+
+#include "ui/display/chromeos/display_mode.h"
+
+// Forward declare from Xlib and Xrandr.
+typedef unsigned long XID;
+typedef XID RRMode;
+
+namespace ui {
+
+class DISPLAY_EXPORT DisplayModeX11 : public DisplayMode {
+ public:
+ DisplayModeX11(const gfx::Size& size,
+ bool interlaced,
+ float refresh_rate,
+ RRMode mode_id);
+ virtual ~DisplayModeX11();
+
+ RRMode mode_id() const { return mode_id_; }
+
+ private:
+ RRMode mode_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayModeX11);
+};
+
+} // namespace ui
+
+#endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_MODE_X11_H_

Powered by Google App Engine
This is Rietveld 408576698