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

Unified Diff: ui/display/manager/managed_display_info.cc

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/manager/managed_display_info.cc
diff --git a/ui/display/manager/managed_display_info.cc b/ui/display/manager/managed_display_info.cc
index f697803d095cd38ce48b99bd2b48ed07da11e5fa..752dc06abfb261b04f12aebf4f5bdea53c9ce1a7 100644
--- a/ui/display/manager/managed_display_info.cc
+++ b/ui/display/manager/managed_display_info.cc
@@ -139,7 +139,7 @@ bool ManagedDisplayMode::IsEquivalent(
// static
ManagedDisplayInfo ManagedDisplayInfo::CreateFromSpec(const std::string& spec) {
- return CreateFromSpecWithID(spec, display::Display::kInvalidDisplayID);
+ return CreateFromSpecWithID(spec, kInvalidDisplayID);
}
// static
@@ -246,7 +246,7 @@ ManagedDisplayInfo ManagedDisplayInfo::CreateFromSpecWithID(
dm->ui_scale(), dm->device_scale_factor());
}
- if (id == display::Display::kInvalidDisplayID)
+ if (id == kInvalidDisplayID)
id = synthesized_display_id++;
display::ManagedDisplayInfo display_info(
id, base::StringPrintf("Display-%d", static_cast<int>(id)), has_overscan);
@@ -275,7 +275,7 @@ void ManagedDisplayInfo::SetUse125DSFForUIScalingForTest(bool enable) {
}
ManagedDisplayInfo::ManagedDisplayInfo()
- : id_(display::Display::kInvalidDisplayID),
+ : id_(kInvalidDisplayID),
has_overscan_(false),
active_rotation_source_(display::Display::ROTATION_SOURCE_UNKNOWN),
touch_support_(display::Display::TOUCH_SUPPORT_UNKNOWN),

Powered by Google App Engine
This is Rietveld 408576698