Index: ui/gfx/monitor.cc |
diff --git a/ui/gfx/monitor.cc b/ui/gfx/monitor.cc |
index 5783a92babe08ef15f8a3d52832d613c3bb1f082..32f545e4808f421af8dcb694ca491b8b847c7280 100644 |
--- a/ui/gfx/monitor.cc |
+++ b/ui/gfx/monitor.cc |
@@ -58,6 +58,13 @@ Monitor::Monitor(int id, const gfx::Rect& bounds) |
Monitor::~Monitor() { |
} |
+Insets Monitor::GetWorkAreaInsets() const { |
+ return gfx::Insets(work_area_.y() - bounds_.y(), |
+ work_area_.x() - bounds_.x(), |
+ bounds_.bottom() - work_area_.bottom(), |
+ bounds_.right() - work_area_.right()); |
+} |
+ |
void Monitor::SetScaleAndBounds( |
float device_scale_factor, |
const gfx::Rect& bounds_in_pixel) { |