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

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

Issue 425343002: [Android WebView] API to enable fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 4 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwSettings.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.android_webview; 5 package org.chromium.android_webview;
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.content.ComponentCallbacks2; 9 import android.content.ComponentCallbacks2;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 } 2165 }
2166 2166
2167 public void extractSmartClipData(int x, int y, int width, int height) { 2167 public void extractSmartClipData(int x, int y, int width, int height) {
2168 mContentViewCore.extractSmartClipData(x, y, width, height); 2168 mContentViewCore.extractSmartClipData(x, y, width, height);
2169 } 2169 }
2170 2170
2171 public void setSmartClipDataListener(ContentViewCore.SmartClipDataListener l istener) { 2171 public void setSmartClipDataListener(ContentViewCore.SmartClipDataListener l istener) {
2172 mContentViewCore.setSmartClipDataListener(listener); 2172 mContentViewCore.setSmartClipDataListener(listener);
2173 } 2173 }
2174 2174
2175 public void setFullscreenSupported(boolean supported) {
mkosiba (inactive) 2014/08/08 11:04:14 I'd prefer to keep method calls that forward to Aw
Ignacio Solla 2014/08/08 17:13:57 Done.
2176 mSettings.setFullscreenSupported(supported);
2177 }
2178
2175 // ------------------------------------------------------------------------- ------------------- 2179 // ------------------------------------------------------------------------- -------------------
2176 // This is the AwViewMethods implementation that does real work. The AwViewM ethodsImpl is 2180 // This is the AwViewMethods implementation that does real work. The AwViewM ethodsImpl is
2177 // hooked up to the WebView in embedded mode and to the FullScreenView in fu llscreen mode, 2181 // hooked up to the WebView in embedded mode and to the FullScreenView in fu llscreen mode,
2178 // but not to both at the same time. 2182 // but not to both at the same time.
2179 private class AwViewMethodsImpl implements AwViewMethods { 2183 private class AwViewMethodsImpl implements AwViewMethods {
2180 private int mLayerType = View.LAYER_TYPE_NONE; 2184 private int mLayerType = View.LAYER_TYPE_NONE;
2181 private ComponentCallbacks2 mComponentCallbacks; 2185 private ComponentCallbacks2 mComponentCallbacks;
2182 2186
2183 // Only valid within software onDraw(). 2187 // Only valid within software onDraw().
2184 private final Rect mClipBoundsTemporary = new Rect(); 2188 private final Rect mClipBoundsTemporary = new Rect();
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 2491
2488 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); 2492 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp);
2489 2493
2490 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible); 2494 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible);
2491 2495
2492 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); 2496 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter);
2493 2497
2494 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin, 2498 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin,
2495 long resources); 2499 long resources);
2496 } 2500 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwSettings.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698