OLD | NEW |
---|---|
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
656 if (isDestroyed()) return null; | 656 if (isDestroyed()) return null; |
657 | 657 |
658 // Detach to tear down the GL functor if this is still associated with t he old | 658 // Detach to tear down the GL functor if this is still associated with t he old |
659 // container view. It will be recreated during the next call to onDraw a ttached to | 659 // container view. It will be recreated during the next call to onDraw a ttached to |
660 // the new container view. | 660 // the new container view. |
661 onDetachedFromWindow(); | 661 onDetachedFromWindow(); |
662 | 662 |
663 // In fullscreen mode FullScreenView owns the AwViewMethodsImpl and AwCo ntents | 663 // In fullscreen mode FullScreenView owns the AwViewMethodsImpl and AwCo ntents |
664 // a NullAwViewMethods. | 664 // a NullAwViewMethods. |
665 FullScreenView fullScreenView = new FullScreenView(mContext, mAwViewMeth ods); | 665 FullScreenView fullScreenView = new FullScreenView(mContext, mAwViewMeth ods); |
666 fullScreenView.setLayerType(mContainerView.getLayerType(), null); | |
boliu
2014/11/04 16:14:40
Let's do this in test classes somewhere. Say the b
| |
666 mFullScreenTransitionsState.enterFullScreen(fullScreenView); | 667 mFullScreenTransitionsState.enterFullScreen(fullScreenView); |
667 mAwViewMethods = new NullAwViewMethods(this, mInternalAccessAdapter, mCo ntainerView); | 668 mAwViewMethods = new NullAwViewMethods(this, mInternalAccessAdapter, mCo ntainerView); |
668 mContainerView.removeOnLayoutChangeListener(mLayoutChangeListener); | 669 mContainerView.removeOnLayoutChangeListener(mLayoutChangeListener); |
669 fullScreenView.addOnLayoutChangeListener(mLayoutChangeListener); | 670 fullScreenView.addOnLayoutChangeListener(mLayoutChangeListener); |
670 | 671 |
671 // Associate this AwContents with the FullScreenView. | 672 // Associate this AwContents with the FullScreenView. |
672 setInternalAccessAdapter(fullScreenView.getInternalAccessAdapter()); | 673 setInternalAccessAdapter(fullScreenView.getInternalAccessAdapter()); |
673 setContainerView(fullScreenView); | 674 setContainerView(fullScreenView); |
674 | 675 |
675 return fullScreenView; | 676 return fullScreenView; |
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2612 | 2613 |
2613 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); | 2614 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); |
2614 | 2615 |
2615 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible); | 2616 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible); |
2616 | 2617 |
2617 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); | 2618 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); |
2618 | 2619 |
2619 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin, | 2620 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin, |
2620 long resources); | 2621 long resources); |
2621 } | 2622 } |
OLD | NEW |