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

Unified Diff: ui/display/display.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/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index 24949393e243ac28da6d7f4e201f53eafa19e8b6..199f51268bb2121aa42c490650254797521cf68d 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "ui/display/display_export.h"
+#include "ui/display/types/display_constants.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/icc_profile.h"
@@ -65,7 +66,8 @@ class DISPLAY_EXPORT Display final {
TOUCH_SUPPORT_UNAVAILABLE,
};
- enum : int64_t { kInvalidDisplayID = -1 };
+ // Use display::kInvalidDisplayID from display_constants.h in new code.
+ enum : int64_t { kInvalidDisplayID = display::kInvalidDisplayID };
sadrul 2016/11/21 17:31:17 Get rid of it?
kylechar 2016/11/21 17:51:18 It's still used everywhere that isn't src/ui/* but
// Creates a display with kInvalidDisplayID as default.
Display();

Powered by Google App Engine
This is Rietveld 408576698