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

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

Issue 652673002: NOT FOR REVIEW: Modify ToggleFullscreenMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixPowerBlockerNonMedia
Patch Set: Rebase Created 6 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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; 5 package org.chromium.content.browser;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.SearchManager; 9 import android.app.SearchManager;
10 import android.content.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 2779 matching lines...) Expand 10 before | Expand all | Expand 10 after
2790 2790
2791 /** 2791 /**
2792 * Inform WebKit that Fullscreen mode has been exited by the user 2792 * Inform WebKit that Fullscreen mode has been exited by the user
2793 * or the app (in the case of the WebView). 2793 * or the app (in the case of the WebView).
2794 */ 2794 */
2795 public void exitFullscreen() { 2795 public void exitFullscreen() {
2796 assert mWebContents != null; 2796 assert mWebContents != null;
2797 mWebContents.exitFullscreen(); 2797 mWebContents.exitFullscreen();
2798 } 2798 }
2799 2799
2800 @CalledByNative
2801 private void onDidEnterFullscreen() {
2802 ContentVideoView videoView = ContentVideoView.getContentVideoView();
2803 if (videoView != null) {
2804 getContentVideoViewClient().enterFullscreenVideo(videoView);
2805 } else {
2806 getContentViewClient().enterFullscreen();
2807 }
2808 }
2809
2810 @CalledByNative
2811 private void onDidExitFullscreen() {
2812 ContentVideoView videoView = ContentVideoView.getContentVideoView();
2813 if (videoView != null) {
2814 getContentVideoViewClient().exitFullscreenVideo();
2815 } else {
2816 getContentViewClient().exitFullscreen();
2817 }
2818 }
2819
2820 /** 2800 /**
2821 * Changes whether hiding the top controls is enabled. 2801 * Changes whether hiding the top controls is enabled.
2822 * 2802 *
2823 * @param enableHiding Whether hiding the top controls should be enabled or not. 2803 * @param enableHiding Whether hiding the top controls should be enabled or not.
2824 * @param enableShowing Whether showing the top controls should be enabled o r not. 2804 * @param enableShowing Whether showing the top controls should be enabled o r not.
2825 * @param animate Whether the transition should be animated or not. 2805 * @param animate Whether the transition should be animated or not.
2826 */ 2806 */
2827 public void updateTopControlsState(boolean enableHiding, boolean enableShowi ng, 2807 public void updateTopControlsState(boolean enableHiding, boolean enableShowi ng,
2828 boolean animate) { 2808 boolean animate) {
2829 assert mWebContents != null; 2809 assert mWebContents != null;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
3065 private native void nativeWasResized(long nativeContentViewCoreImpl); 3045 private native void nativeWasResized(long nativeContentViewCoreImpl);
3066 3046
3067 private native void nativeSetAccessibilityEnabled( 3047 private native void nativeSetAccessibilityEnabled(
3068 long nativeContentViewCoreImpl, boolean enabled); 3048 long nativeContentViewCoreImpl, boolean enabled);
3069 3049
3070 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3050 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3071 int x, int y, int w, int h); 3051 int x, int y, int w, int h);
3072 3052
3073 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3053 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3074 } 3054 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698