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

Unified Diff: ui/gfx/display.cc

Issue 12254040: Revert 182494 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months 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/gfx/display.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.cc
===================================================================
--- ui/gfx/display.cc (revision 182530)
+++ ui/gfx/display.cc (working copy)
@@ -32,8 +32,7 @@
return static_cast<float>(scale_in_double);
}
-int64 internal_display_id_ = Display::kInvalidDisplayID;
-} // namespace
+} // namespace
const int64 Display::kInvalidDisplayID = -1;
@@ -130,25 +129,11 @@
}
std::string Display::ToString() const {
- return base::StringPrintf(
- "Display[%lld] bounds=%s, workarea=%s, scale=%f, %s",
- static_cast<long long int>(id_),
- bounds_.ToString().c_str(),
- work_area_.ToString().c_str(),
- device_scale_factor_,
- IsInternal() ? "internal" : "external");
+ return base::StringPrintf("Display[%lld] bounds=%s, workarea=%s, scale=%f",
+ static_cast<long long int>(id_),
+ bounds_.ToString().c_str(),
+ work_area_.ToString().c_str(),
+ device_scale_factor_);
}
-bool Display::IsInternal() const {
- return is_valid() && (id_ == internal_display_id_);
-}
-
-int64 Display::InternalDisplayId() {
- return internal_display_id_;
-}
-
-void Display::SetInternalDisplayId(int64 internal_display_id) {
- internal_display_id_ = internal_display_id;
-}
-
} // namespace gfx
« no previous file with comments | « ui/gfx/display.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698