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

Unified Diff: ash/display/multi_display_manager.cc

Issue 11195036: Overscan calibration UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « ash/display/multi_display_manager.h ('k') | ash/screen_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index 0a4410392b3ab56246e81a5b04617da335c63c1f..a1f26bac1724984ad97cc2702f1577abd1a1a360 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -162,6 +162,12 @@ void MultiDisplayManager::SetOverscanInsets(int64 display_id,
OnNativeDisplaysChanged(displays);
}
+gfx::Insets MultiDisplayManager::GetOverscanInsets(int64 display_id) const {
+ std::map<int64, gfx::Insets>::const_iterator it =
+ overscan_mapping_.find(display_id);
+ return (it != overscan_mapping_.end()) ? it->second : gfx::Insets();
+}
+
void MultiDisplayManager::OnNativeDisplaysChanged(
const std::vector<gfx::Display>& updated_displays) {
if (updated_displays.empty()) {
« no previous file with comments | « ash/display/multi_display_manager.h ('k') | ash/screen_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698