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

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

Issue 2395873002: Add more options to --screen-config flag. (Closed)
Patch Set: Fix windows compile Created 4 years, 2 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
« no previous file with comments | « ui/display/test/display_matchers.cc ('k') | ui/display/types/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
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_TYPES_DISPLAY_MODE_H_ 5 #ifndef UI_DISPLAY_TYPES_DISPLAY_MODE_H_
6 #define UI_DISPLAY_TYPES_DISPLAY_MODE_H_ 6 #define UI_DISPLAY_TYPES_DISPLAY_MODE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream>
9 #include <string> 10 #include <string>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "ui/display/types/display_types_export.h" 13 #include "ui/display/types/display_types_export.h"
13 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
14 15
15 namespace ui { 16 namespace ui {
16 17
17 // This class represents the basic information for a native mode. Platforms will 18 // This class represents the basic information for a native mode. Platforms will
18 // extend this class to add platform specific information about the mode. 19 // extend this class to add platform specific information about the mode.
(...skipping 10 matching lines...) Expand all
29 virtual std::string ToString() const; 30 virtual std::string ToString() const;
30 31
31 private: 32 private:
32 gfx::Size size_; 33 gfx::Size size_;
33 bool is_interlaced_; 34 bool is_interlaced_;
34 float refresh_rate_; 35 float refresh_rate_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(DisplayMode); 37 DISALLOW_COPY_AND_ASSIGN(DisplayMode);
37 }; 38 };
38 39
40 // Used to by gtest to print readable errors.
41 DISPLAY_TYPES_EXPORT void PrintTo(const DisplayMode& mode, std::ostream* os);
42
39 } // namespace ui 43 } // namespace ui
40 44
41 #endif // UI_DISPLAY_TYPES_DISPLAY_MODE_H_ 45 #endif // UI_DISPLAY_TYPES_DISPLAY_MODE_H_
OLDNEW
« no previous file with comments | « ui/display/test/display_matchers.cc ('k') | ui/display/types/display_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698