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

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
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index e09abd84a04f1c98ea7ddf490cb9d3eaa0827e5a..c51a5fed2274e7cfe473fb32022e2f572d066ed7 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -158,6 +158,15 @@ void MultiDisplayManager::SetOverscanInsets(int64 display_id,
OnNativeDisplaysChanged(displays_);
}
+gfx::Insets MultiDisplayManager::GetOverscanInsets(int64 display_id) {
+ std::map<int64, gfx::Insets>::const_iterator it =
+ overscan_mapping_.find(display_id);
+ if (it != overscan_mapping_.end())
+ return it->second;
+
+ return gfx::Insets();
oshima 2012/10/19 19:36:11 return it != ... ? it->second() : gfx::Insetse();
Jun Mukai 2012/10/19 21:39:34 Done.
+}
+
void MultiDisplayManager::OnNativeDisplaysChanged(
const std::vector<gfx::Display>& updated_displays) {
if (updated_displays.empty()) {

Powered by Google App Engine
This is Rietveld 408576698