| 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.content_shell; | 5 package org.chromium.content_shell; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.util.AttributeSet; | 9 import android.util.AttributeSet; |
| 10 import android.view.LayoutInflater; | 10 import android.view.LayoutInflater; |
| 11 import android.view.View; | 11 import android.view.View; |
| 12 import android.widget.FrameLayout; | 12 import android.widget.FrameLayout; |
| 13 | 13 |
| 14 import org.chromium.base.CalledByNative; | |
| 15 import org.chromium.base.JNINamespace; | |
| 16 import org.chromium.base.ThreadUtils; | 14 import org.chromium.base.ThreadUtils; |
| 17 import org.chromium.base.VisibleForTesting; | 15 import org.chromium.base.VisibleForTesting; |
| 16 import org.chromium.base.annotations.CalledByNative; |
| 17 import org.chromium.base.annotations.JNINamespace; |
| 18 import org.chromium.content.browser.ActivityContentVideoViewClient; | 18 import org.chromium.content.browser.ActivityContentVideoViewClient; |
| 19 import org.chromium.content.browser.ContentVideoViewClient; | 19 import org.chromium.content.browser.ContentVideoViewClient; |
| 20 import org.chromium.content.browser.ContentViewClient; | 20 import org.chromium.content.browser.ContentViewClient; |
| 21 import org.chromium.content.browser.ContentViewCore; | 21 import org.chromium.content.browser.ContentViewCore; |
| 22 import org.chromium.content.browser.ContentViewRenderView; | 22 import org.chromium.content.browser.ContentViewRenderView; |
| 23 import org.chromium.ui.base.WindowAndroid; | 23 import org.chromium.ui.base.WindowAndroid; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Container and generator of ShellViews. | 26 * Container and generator of ShellViews. |
| 27 */ | 27 */ |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 if (shellView.getParent() == null) return; | 174 if (shellView.getParent() == null) return; |
| 175 ContentViewCore contentViewCore = shellView.getContentViewCore(); | 175 ContentViewCore contentViewCore = shellView.getContentViewCore(); |
| 176 if (contentViewCore != null) contentViewCore.onHide(); | 176 if (contentViewCore != null) contentViewCore.onHide(); |
| 177 shellView.setContentViewRenderView(null); | 177 shellView.setContentViewRenderView(null); |
| 178 removeView(shellView); | 178 removeView(shellView); |
| 179 } | 179 } |
| 180 | 180 |
| 181 private static native void nativeInit(Object shellManagerInstance); | 181 private static native void nativeInit(Object shellManagerInstance); |
| 182 private static native void nativeLaunchShell(String url); | 182 private static native void nativeLaunchShell(String url); |
| 183 } | 183 } |
| OLD | NEW |