ContentVideoViewClient.java revision 868fa2fe829687343ffae624259930155e16dbd8
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package org.chromium.content.browser; 6 7import android.view.View; 8 9/** 10 * Main callback class used by ContentVideoView. 11 * 12 * This contains the superset of callbacks must be implemented by the emmbedder. 13 * 14 * onShowCustomView and onDestoryContentVideoView must be implemented, 15 * getVideoLoadingProgressView() is optional, and may return null if not required. 16 * 17 * The implementer is responsible for displaying the Android view when 18 * {@link #onShowCustomView(View)} is called. 19 */ 20public interface ContentVideoViewClient { 21 public void onShowCustomView(View view); 22 public void onDestroyContentVideoView(); 23 public void keepScreenOn(boolean screenOn); 24 public View getVideoLoadingProgressView(); 25} 26