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

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

Issue 2519993002: Move kInvalidDisplayID to display_constants.h. (Closed)
Patch Set: Add comment. 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
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..73767579fd5fe042f96c7692d68802bb134c250a 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.
Daniel Erat 2016/11/21 17:33:57 nit: s/id/ID/g in this comment
kylechar 2016/11/21 17:51:18 Done.
+constexpr int64_t kInvalidDisplayID = -1;
Daniel Erat 2016/11/21 17:33:57 it's a pretty big nit, but i think that "Id" is mo
kylechar 2016/11/21 17:51:18 I actually like kInvalidDisplayId better too. Chan
+
+} // namespace display
+
namespace ui {
// Used to describe the state of a multi-display configuration.

Powered by Google App Engine
This is Rietveld 408576698