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

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

Issue 1139873004: Make android directory for Android-specific bits of SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
Index: sky/shell/org/domokit/sky/shell/SkyActivity.java
diff --git a/sky/shell/org/domokit/sky/shell/SkyActivity.java b/sky/shell/org/domokit/sky/shell/SkyActivity.java
deleted file mode 100644
index 101c282665a69eac5f649a47fee7c7af9ad19e23..0000000000000000000000000000000000000000
--- a/sky/shell/org/domokit/sky/shell/SkyActivity.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.domokit.sky.shell;
-
-import android.app.Activity;
-import android.os.Build;
-import android.os.Bundle;
-import android.view.View;
-import android.view.WindowManager;
-
-/**
- * Base class for activities that use Sky.
- */
-public class SkyActivity extends Activity {
- private TracingController mTracingController;
- private PlatformView mView;
-
- /**
- * @see android.app.Activity#onCreate(android.os.Bundle)
- */
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
- getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
- getWindow().setStatusBarColor(0x40000000);
- }
- getWindow().getDecorView().setSystemUiVisibility(
- View.SYSTEM_UI_FLAG_LAYOUT_STABLE
- | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
-
- SkyMain.ensureInitialized(getApplicationContext());
- mView = new PlatformView(this);
- setContentView(mView);
- mTracingController = new TracingController(this);
- }
-
- public void loadUrl(String url) {
- mView.loadUrl(url);
- }
-}
« no previous file with comments | « sky/shell/org/domokit/sky/shell/ServiceRegistry.java ('k') | sky/shell/org/domokit/sky/shell/SkyApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698