blob: 21cf6fb62f59e9fdb973baf0e5fde84c20f468eb [file] [log] [blame]
// 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/display_export.h"
#include "ui/display/types/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_