Index: android_webview/java/src/org/chromium/android_webview/AwContentVideoViewDelegate.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentVideoViewDelegate.java b/android_webview/java/src/org/chromium/android_webview/AwContentVideoViewDelegate.java |
deleted file mode 100644 |
index c2520c865fc4b91c2ed16f2a6dc6a7a2647343f3..0000000000000000000000000000000000000000 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContentVideoViewDelegate.java |
+++ /dev/null |
@@ -1,54 +0,0 @@ |
-// Copyright (c) 2012 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.android_webview; |
- |
-import android.content.Context; |
-import android.content.pm.ActivityInfo; |
-import android.view.View; |
-import android.webkit.WebChromeClient.CustomViewCallback; |
- |
-import org.chromium.content.browser.ContentVideoViewContextDelegate; |
- |
-/** |
- * This further delegates the responsibility displaying full-screen video to the |
- * Webview client. |
- */ |
-public class AwContentVideoViewDelegate implements ContentVideoViewContextDelegate { |
- private AwContentsClient mAwContentsClient; |
- private Context mContext; |
- |
- public AwContentVideoViewDelegate(AwContentsClient client, Context context) { |
- mAwContentsClient = client; |
- mContext = context; |
- } |
- |
- @Override |
- public void onShowCustomView(View view) { |
- CustomViewCallback cb = new CustomViewCallback() { |
- @Override |
- public void onCustomViewHidden() { |
- // TODO: we need to invoke ContentVideoView.onDestroyContentVideoView() here. |
- } |
- }; |
- mAwContentsClient.onShowCustomView(view, |
- ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, |
- cb); |
- } |
- |
- @Override |
- public void onDestroyContentVideoView() { |
- mAwContentsClient.onHideCustomView(); |
- } |
- |
- @Override |
- public Context getContext() { |
- return mContext; |
- } |
- |
- @Override |
- public View getVideoLoadingProgressView() { |
- return mAwContentsClient.getVideoLoadingProgressView(); |
- } |
-} |