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

Unified Diff: sky/engine/core/view/View.h

Issue 1220353002: Add padding values to View.idl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | sky/engine/core/view/View.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/view/View.h
diff --git a/sky/engine/core/view/View.h b/sky/engine/core/view/View.h
index b5a5599fbec19da521ebb900282874b9a836fccf..71147f4b968b10d0f0f6537a3b659f0882f1e89d 100644
--- a/sky/engine/core/view/View.h
+++ b/sky/engine/core/view/View.h
@@ -25,6 +25,12 @@ public:
static PassRefPtr<View> create(const base::Closure& scheduleFrameCallback);
double devicePixelRatio() const { return m_displayMetrics.device_pixel_ratio; }
+
+ double paddingTop() const { return m_displayMetrics.padding_top; }
+ double paddingRight() const { return m_displayMetrics.padding_right; }
+ double paddingBottom() const { return m_displayMetrics.padding_bottom; }
+ double paddingLeft() const { return m_displayMetrics.padding_left; }
+
double width() const;
double height() const;
« no previous file with comments | « no previous file | sky/engine/core/view/View.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698