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

Unified Diff: ui/display/types/display_snapshot.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/types/display_mode.cc ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/display_snapshot.h
diff --git a/ui/display/types/display_snapshot.h b/ui/display/types/display_snapshot.h
index 58cdb398b2a41a55213b634493b42ee7ca4ec28e..2197f70c3d8fe1c5f120fb913e4c677dfcc812a9 100644
--- a/ui/display/types/display_snapshot.h
+++ b/ui/display/types/display_snapshot.h
@@ -24,6 +24,8 @@ namespace ui {
// identifiers required to configure this display.
class DISPLAY_TYPES_EXPORT DisplaySnapshot {
public:
+ using DisplayModeList = std::vector<std::unique_ptr<const DisplayMode>>;
+
DisplaySnapshot(int64_t display_id,
const gfx::Point& origin,
const gfx::Size& physical_size,
@@ -33,7 +35,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
bool has_color_correction_matrix,
std::string display_name,
const base::FilePath& sys_path,
- std::vector<std::unique_ptr<const DisplayMode>> modes,
+ DisplayModeList modes,
const std::vector<uint8_t>& edid,
const DisplayMode* current_mode,
const DisplayMode* native_mode);
@@ -56,9 +58,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
int64_t product_id() const { return product_id_; }
const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; }
- const std::vector<std::unique_ptr<const DisplayMode>>& modes() const {
- return modes_;
- }
+ const DisplayModeList& modes() const { return modes_; }
const std::vector<uint8_t>& edid() const { return edid_; }
void set_current_mode(const DisplayMode* mode) { current_mode_ = mode; }
@@ -102,7 +102,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
base::FilePath sys_path_;
- std::vector<std::unique_ptr<const DisplayMode>> modes_;
+ DisplayModeList modes_;
// The display's EDID. It can be empty if nothing extracted such as in the
// case of a virtual display.
@@ -120,6 +120,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
// Maximum supported cursor size on this display.
gfx::Size maximum_cursor_size_;
+ private:
DISALLOW_COPY_AND_ASSIGN(DisplaySnapshot);
};
« no previous file with comments | « ui/display/types/display_mode.cc ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698