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

Unified Diff: ui/display/types/display_snapshot.h

Issue 1636153002: Give user ability to file a feedback report from the display error notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oshima's comments Created 4 years, 11 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
Index: ui/display/types/display_snapshot.h
diff --git a/ui/display/types/display_snapshot.h b/ui/display/types/display_snapshot.h
index 7f697984fe581b105090cae83d08e22cfef3bb38..7f6591686e5d1fff52b55dd375552cc66e90c8ca 100644
--- a/ui/display/types/display_snapshot.h
+++ b/ui/display/types/display_snapshot.h
@@ -32,6 +32,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
std::string display_name,
const base::FilePath& sys_path,
const std::vector<const DisplayMode*>& modes,
+ const std::vector<uint8_t>& edid,
const DisplayMode* current_mode,
const DisplayMode* native_mode);
virtual ~DisplaySnapshot();
@@ -53,6 +54,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
int64_t product_id() const { return product_id_; }
const std::vector<const DisplayMode*>& modes() const { return modes_; }
+ const std::vector<uint8_t>& edid() const { return edid_; }
void set_current_mode(const DisplayMode* mode) { current_mode_ = mode; }
void set_origin(const gfx::Point& origin) { origin_ = origin; }
@@ -85,6 +87,10 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
std::vector<const DisplayMode*> modes_; // Not owned.
+ // The display's EDID. It can be empty if nothing extracted such as in the
+ // case of a virtual display.
+ std::vector<uint8_t> edid_;
+
// Mode currently being used by the output.
const DisplayMode* current_mode_;

Powered by Google App Engine
This is Rietveld 408576698