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

Side by Side Diff: ui/display/chromeos/display_mode.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | ui/display/chromeos/display_mode.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | ui/display/chromeos/display_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698