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

Unified Diff: ash/display/display_info.cc

Issue 336863002: Moving input device hotplug event processing outside of ui/display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 3 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
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index dc37650f3c81cb2f7875d2ed1697d50c71bf9aaa..72d256e47bf36a8ada7a7db0e9baf8519cba0041 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -328,6 +328,15 @@ gfx::Insets DisplayInfo::GetOverscanInsetsInPixel() const {
return overscan_insets_in_dip_.Scale(device_scale_factor_);
}
+gfx::Size DisplayInfo::GetNativeModeSize() const {
+ for (size_t i = 0; i < display_modes_.size(); ++i) {
+ if (display_modes_[i].native)
+ return display_modes_[i].size;
+ }
+
+ return gfx::Size();
+}
+
std::string DisplayInfo::ToString() const {
int rotation_degree = static_cast<int>(rotation_) * 90;
return base::StringPrintf(

Powered by Google App Engine
This is Rietveld 408576698