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

Unified Diff: sky/shell/android/org/domokit/sky/shell/SkyActivity.java

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 | « sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java ('k') | sky/shell/ios/sky_surface.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/android/org/domokit/sky/shell/SkyActivity.java
diff --git a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
index de84817719f6a725f88ff88354e175cd5355a5c6..ef1fa1cc40709c1f490aa66e987b39717099831a 100644
--- a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
+++ b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
@@ -28,16 +28,20 @@ public class SkyActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ PlatformViewAndroid.EdgeDims edgeDims = new PlatformViewAndroid.EdgeDims();
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
getWindow().setStatusBarColor(0x40000000);
+ // TODO(abarth): We should get this value from the Android framework somehow.
+ edgeDims.top = 25.0;
}
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
SkyMain.ensureInitialized(getApplicationContext());
- mView = new PlatformViewAndroid(this);
+ mView = new PlatformViewAndroid(this, edgeDims);
setContentView(mView);
mTracingController = new TracingController(this);
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java ('k') | sky/shell/ios/sky_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698