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

Unified Diff: ui/display/fake_display_delegate.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.cc ('k') | ui/display/fake_display_snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/fake_display_delegate.cc
diff --git a/ui/display/fake_display_delegate.cc b/ui/display/fake_display_delegate.cc
index 2578a7b337cb940de54f320264503d9d72d90f88..5d202d4560c7660f5fdbea19f148fbdc30591d93 100644
--- a/ui/display/fake_display_delegate.cc
+++ b/ui/display/fake_display_delegate.cc
@@ -17,6 +17,7 @@
#include "base/strings/stringprintf.h"
#include "ui/display/display.h"
#include "ui/display/display_switches.h"
+#include "ui/display/types/display_constants.h"
#include "ui/display/types/native_display_observer.h"
#include "ui/display/util/display_util.h"
@@ -41,7 +42,7 @@ int64_t FakeDisplayDelegate::AddDisplay(const gfx::Size& display_size) {
if (next_display_id_ == 0xFF) {
LOG(ERROR) << "Exceeded display id limit";
- return Display::kInvalidDisplayID;
+ return kInvalidDisplayId;
}
int64_t id = GenerateDisplayID(kReservedManufacturerID, kProductCodeHash,
@@ -51,7 +52,7 @@ int64_t FakeDisplayDelegate::AddDisplay(const gfx::Size& display_size) {
builder.SetId(id).SetNativeMode(display_size);
builder.SetName(base::StringPrintf("Fake Display %" PRId64, id));
- return AddDisplay(builder.Build()) ? id : Display::kInvalidDisplayID;
+ return AddDisplay(builder.Build()) ? id : kInvalidDisplayId;
}
bool FakeDisplayDelegate::AddDisplay(
« no previous file with comments | « ui/display/display.cc ('k') | ui/display/fake_display_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698