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

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

Issue 2519993002: Move kInvalidDisplayID to display_constants.h. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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/test/display_manager_test_api.cc ('k') | ui/events/devices/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/display_constants.h
diff --git a/ui/display/types/display_constants.h b/ui/display/types/display_constants.h
index b24bab7e6373dd81f3f9556fa9b2f85e1df75d51..f58d72e46178e8680f3ba7f8e9f6d27b9c8677d1 100644
--- a/ui/display/types/display_constants.h
+++ b/ui/display/types/display_constants.h
@@ -5,6 +5,16 @@
#ifndef UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_
#define UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_
+#include <stdint.h>
+
+namespace display {
+
+// Display ID that represents an invalid display. Often used as a default value
+// before display IDs are known.
+constexpr int64_t kInvalidDisplayId = -1;
+
+} // namespace display
+
namespace ui {
// Used to describe the state of a multi-display configuration.
« no previous file with comments | « ui/display/test/display_manager_test_api.cc ('k') | ui/events/devices/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698