Index: ui/display/types/display_snapshot.h |
diff --git a/ui/display/types/display_snapshot.h b/ui/display/types/display_snapshot.h |
index e0dcc7b09771b97f1eb65d86db95fbe294631812..c59ecded646827b2c5d7e396bb723a72b4cf4d0b 100644 |
--- a/ui/display/types/display_snapshot.h |
+++ b/ui/display/types/display_snapshot.h |
@@ -44,6 +44,7 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot { |
const DisplayMode* current_mode() const { return current_mode_; } |
const DisplayMode* native_mode() const { return native_mode_; } |
+ int64_t product_id() const { return product_id_; } |
const std::vector<const DisplayMode*>& modes() const { return modes_; } |
@@ -54,6 +55,9 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot { |
// Returns a textual representation of this display state. |
virtual std::string ToString() const = 0; |
+ // Used when no product id known. |
+ static const int64_t kInvalidProductID = -1; |
dcheng
2015/05/06 18:27:46
Just curious: why is kInvalidProductID -1, and kDu
|
+ |
protected: |
// Display id for this output. |
int64_t display_id_; |
@@ -79,6 +83,9 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot { |
// "Best" mode supported by the output. |
const DisplayMode* native_mode_; |
+ // Combination of manufacturer and product code. |
+ int64_t product_id_; |
+ |
DISALLOW_COPY_AND_ASSIGN(DisplaySnapshot); |
}; |