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

Unified Diff: ui/gfx/monitor.cc

Issue 10388036: Adds the option of aligning the launcher to the left or right. There (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 7 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/monitor.h ('k') | ui/views/view_model_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « ui/gfx/monitor.h ('k') | ui/views/view_model_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698