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

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: 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
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 class DISPLAY_EXPORT DisplayMode {
Daniel Erat 2014/03/05 01:56:12 nit: add a short comment describing what this corr
dnicoara 2014/03/05 17:29:25 Done.
15 public:
16 DisplayMode(const gfx::Size& size, bool interlaced, float refresh_rate);
17 virtual ~DisplayMode();
18
19 const gfx::Size& size() const { return size_; }
20 bool is_interlaced() const { return is_interlaced_; }
21 float refresh_rate() const { return refresh_rate_; }
22
23 private:
24 gfx::Size size_;
25 bool is_interlaced_;
26 float refresh_rate_;
27
28 DISALLOW_COPY_AND_ASSIGN(DisplayMode);
29 };
30
31 } // namespace ui
32
33 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_MODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698