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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java

Issue 292573004: Don't use webmediaplayer to FullscreenController about fullscreen change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
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.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.os.Handler; 7 import android.os.Handler;
8 import android.os.Message; 8 import android.os.Message;
9 import android.util.Log; 9 import android.util.Log;
10 import android.view.KeyEvent; 10 import android.view.KeyEvent;
11 import android.view.View; 11 import android.view.View;
12 import android.webkit.ConsoleMessage; 12 import android.webkit.ConsoleMessage;
13 import android.webkit.ValueCallback; 13 import android.webkit.ValueCallback;
14 14
15 import org.chromium.base.ThreadUtils; 15 import org.chromium.base.ThreadUtils;
16 import org.chromium.content.browser.ContentVideoView;
16 import org.chromium.content.browser.ContentViewCore; 17 import org.chromium.content.browser.ContentViewCore;
17 18
18 /** 19 /**
19 * Adapts the AwWebContentsDelegate interface to the AwContentsClient interface. 20 * Adapts the AwWebContentsDelegate interface to the AwContentsClient interface.
20 * This class also serves a secondary function of routing certain callbacks from the content layer 21 * This class also serves a secondary function of routing certain callbacks from the content layer
21 * to specific listener interfaces. 22 * to specific listener interfaces.
22 */ 23 */
23 class AwWebContentsDelegateAdapter extends AwWebContentsDelegate { 24 class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
24 private static final String TAG = "AwWebContentsDelegateAdapter"; 25 private static final String TAG = "AwWebContentsDelegateAdapter";
25 26
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 @Override 186 @Override
186 public boolean addNewContents(boolean isDialog, boolean isUserGesture) { 187 public boolean addNewContents(boolean isDialog, boolean isUserGesture) {
187 return mContentsClient.onCreateWindow(isDialog, isUserGesture); 188 return mContentsClient.onCreateWindow(isDialog, isUserGesture);
188 } 189 }
189 190
190 @Override 191 @Override
191 public void activateContents() { 192 public void activateContents() {
192 mContentsClient.onRequestFocus(); 193 mContentsClient.onRequestFocus();
193 } 194 }
195
196 @Override
197 public void toggleFullscreenModeForTab(boolean enterFullscreen) {
198 if (!enterFullscreen) {
199 ContentVideoView videoView = ContentVideoView.getContentVideoView();
200 if (videoView != null) videoView.exitFullscreen(false);
201 }
202 }
194 } 203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698