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

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

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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/BUILD.gn ('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 70192083cdfae99312c318d4c1a6008d0d37bae2..c59ecded646827b2c5d7e396bb723a72b4cf4d0b 100644
--- a/ui/display/types/display_snapshot.h
+++ b/ui/display/types/display_snapshot.h
@@ -20,7 +20,6 @@ namespace ui {
class DISPLAY_TYPES_EXPORT DisplaySnapshot {
public:
DisplaySnapshot(int64_t display_id,
- bool has_proper_display_id,
const gfx::Point& origin,
const gfx::Size& physical_size,
DisplayConnectionType type,
@@ -42,10 +41,10 @@ class DISPLAY_TYPES_EXPORT DisplaySnapshot {
std::string display_name() const { return display_name_; }
int64_t display_id() const { return display_id_; }
- bool has_proper_display_id() const { return has_proper_display_id_; }
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_; }
@@ -56,10 +55,12 @@ 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;
+
protected:
// Display id for this output.
int64_t display_id_;
- bool has_proper_display_id_;
// Display's origin on the framebuffer.
gfx::Point origin_;
@@ -82,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);
};
« no previous file with comments | « ui/display/types/BUILD.gn ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698