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

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

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Removed verbose comment 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.content.ActivityNotFoundException; 7 import android.content.ActivityNotFoundException;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.util.Log; 10 import android.util.Log;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 keyCode == KeyEvent.KEYCODE_HEADSETHOOK || 202 keyCode == KeyEvent.KEYCODE_HEADSETHOOK ||
203 keyCode == KeyEvent.KEYCODE_CAMERA || 203 keyCode == KeyEvent.KEYCODE_CAMERA ||
204 keyCode == KeyEvent.KEYCODE_FOCUS || 204 keyCode == KeyEvent.KEYCODE_FOCUS ||
205 keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || 205 keyCode == KeyEvent.KEYCODE_VOLUME_DOWN ||
206 keyCode == KeyEvent.KEYCODE_VOLUME_MUTE || 206 keyCode == KeyEvent.KEYCODE_VOLUME_MUTE ||
207 keyCode == KeyEvent.KEYCODE_VOLUME_UP) { 207 keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
208 return false; 208 return false;
209 } 209 }
210 return true; 210 return true;
211 } 211 }
212
213 /**
214 * Called when a non-video element has entered fullscreen. For video element s see
215 * {@link ContentVideoViewClient#enterFullscreenVideo(android.view.View)}.
216 */
217 public void enterFullscreen() { }
218
219 /**
220 * Called when a non-video element has exited fullscreen. For video elements see
221 * {@link ContentVideoViewClient#exitFullscreenVideo()}.
222 */
223 public void exitFullscreen() { }
212 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698