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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java

Issue 2692903002: Don't show media controls when there is a persistent video. (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser.webcontents; 5 package org.chromium.content.browser.webcontents;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.graphics.Bitmap; 8 import android.graphics.Bitmap;
9 import android.graphics.Rect; 9 import android.graphics.Rect;
10 import android.os.Bundle; 10 import android.os.Bundle;
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 private void onDownloadImageFinished(ImageDownloadCallback callback, int id, int httpStatusCode, 510 private void onDownloadImageFinished(ImageDownloadCallback callback, int id, int httpStatusCode,
511 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { 511 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) {
512 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si zes); 512 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si zes);
513 } 513 }
514 514
515 @Override 515 @Override
516 public void dismissTextHandles() { 516 public void dismissTextHandles() {
517 nativeDismissTextHandles(mNativeWebContentsAndroid); 517 nativeDismissTextHandles(mNativeWebContentsAndroid);
518 } 518 }
519 519
520 @Override
521 public void setHasPersistentVideo(boolean value) {
522 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value);
523 }
524
520 @CalledByNative 525 @CalledByNative
521 private final void setMediaSession(MediaSessionImpl mediaSession) { 526 private final void setMediaSession(MediaSessionImpl mediaSession) {
522 mMediaSession = mediaSession; 527 mMediaSession = mediaSession;
523 } 528 }
524 529
525 @CalledByNative 530 @CalledByNative
526 private static List<Bitmap> createBitmapList() { 531 private static List<Bitmap> createBitmapList() {
527 return new ArrayList<Bitmap>(); 532 return new ArrayList<Bitmap>();
528 } 533 }
529 534
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 private native void nativeSetOverscrollRefreshHandler( 602 private native void nativeSetOverscrollRefreshHandler(
598 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc rollRefreshHandler); 603 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc rollRefreshHandler);
599 private native void nativeGetContentBitmap(long nativeWebContentsAndroid, 604 private native void nativeGetContentBitmap(long nativeWebContentsAndroid,
600 ContentBitmapCallback callback, Bitmap.Config config, float scale, 605 ContentBitmapCallback callback, Bitmap.Config config, float scale,
601 float x, float y, float width, float height); 606 float x, float y, float width, float height);
602 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); 607 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid);
603 private native int nativeDownloadImage(long nativeWebContentsAndroid, 608 private native int nativeDownloadImage(long nativeWebContentsAndroid,
604 String url, boolean isFavicon, int maxBitmapSize, 609 String url, boolean isFavicon, int maxBitmapSize,
605 boolean bypassCache, ImageDownloadCallback callback); 610 boolean bypassCache, ImageDownloadCallback callback);
606 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); 611 private native void nativeDismissTextHandles(long nativeWebContentsAndroid);
612 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi d, boolean value);
607 } 613 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698