Index: content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewClient.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewClient.java b/content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewClient.java |
deleted file mode 100644 |
index 95571cb55b99f98a17ae864ecafe7c939fc932df..0000000000000000000000000000000000000000 |
--- a/content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewClient.java |
+++ /dev/null |
@@ -1,51 +0,0 @@ |
-// Copyright 2013 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.chromium.content.browser; |
- |
-import android.app.Activity; |
-import android.view.Gravity; |
-import android.view.View; |
-import android.view.ViewGroup; |
-import android.view.WindowManager; |
-import android.widget.FrameLayout; |
- |
-/** |
- * Uses an existing Activity to handle displaying video in full screen. |
- */ |
-public class ActivityContentVideoViewClient implements ContentVideoViewClient { |
- private final Activity mActivity; |
- private View mView; |
- |
- public ActivityContentVideoViewClient(Activity activity) { |
- this.mActivity = activity; |
- } |
- |
- @Override |
- public void onShowCustomView(View view) { |
- mActivity.getWindow().setFlags( |
- WindowManager.LayoutParams.FLAG_FULLSCREEN, |
- WindowManager.LayoutParams.FLAG_FULLSCREEN); |
- |
- mActivity.getWindow().addContentView(view, |
- new FrameLayout.LayoutParams( |
- ViewGroup.LayoutParams.MATCH_PARENT, |
- ViewGroup.LayoutParams.MATCH_PARENT, |
- Gravity.CENTER)); |
- mView = view; |
- } |
- |
- @Override |
- public void onDestroyContentVideoView() { |
- mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); |
- FrameLayout decor = (FrameLayout) mActivity.getWindow().getDecorView(); |
- decor.removeView(mView); |
- mView = null; |
- } |
- |
- @Override |
- public View getVideoLoadingProgressView() { |
- return null; |
- } |
-} |