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

Unified Diff: ui/display/display.cc

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/display.h ('k') | ui/display/fake_display_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.cc
diff --git a/ui/display/display.cc b/ui/display/display.cc
index 60fd280d5e70788ff270023858bf2b57bb6c97ec..f0e31392139a04734376fdb7a57a26e458231223 100644
--- a/ui/display/display.cc
+++ b/ui/display/display.cc
@@ -76,7 +76,7 @@ void Display::ResetForceDeviceScaleFactorForTesting() {
constexpr int DEFAULT_BITS_PER_PIXEL = 24;
constexpr int DEFAULT_BITS_PER_COMPONENT = 8;
-Display::Display() : Display(kInvalidDisplayID) {}
+Display::Display() : Display(kInvalidDisplayId) {}
Display::Display(int64_t id) : Display(id, gfx::Rect()) {}
@@ -187,7 +187,7 @@ bool Display::IsInternal() const {
// static
int64_t Display::InternalDisplayId() {
- DCHECK_NE(kInvalidDisplayID, internal_display_id_);
+ DCHECK_NE(kInvalidDisplayId, internal_display_id_);
return internal_display_id_;
}
@@ -198,13 +198,13 @@ void Display::SetInternalDisplayId(int64_t internal_display_id) {
// static
bool Display::IsInternalDisplayId(int64_t display_id) {
- DCHECK_NE(kInvalidDisplayID, display_id);
+ DCHECK_NE(kInvalidDisplayId, display_id);
return HasInternalDisplay() && internal_display_id_ == display_id;
}
// static
bool Display::HasInternalDisplay() {
- return internal_display_id_ != kInvalidDisplayID;
+ return internal_display_id_ != kInvalidDisplayId;
}
} // namespace display
« no previous file with comments | « ui/display/display.h ('k') | ui/display/fake_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698