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

Side by Side Diff: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java

Issue 70843003: ui: Android changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dom_distiller fixes Created 7 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.content.Context; 7 import android.content.Context;
8 import android.util.AttributeSet; 8 import android.util.AttributeSet;
9 import android.view.LayoutInflater; 9 import android.view.LayoutInflater;
10 import android.widget.FrameLayout; 10 import android.widget.FrameLayout;
11 11
12 import org.chromium.base.CalledByNative; 12 import org.chromium.base.CalledByNative;
13 import org.chromium.base.JNINamespace; 13 import org.chromium.base.JNINamespace;
14 import org.chromium.content.browser.ContentView; 14 import org.chromium.content.browser.ContentView;
15 import org.chromium.content.browser.ContentViewRenderView; 15 import org.chromium.content.browser.ContentViewRenderView;
16 import org.chromium.ui.WindowAndroid; 16 import org.chromium.ui.base.WindowAndroid;
17 17
18 /** 18 /**
19 * Container and generator of ShellViews. 19 * Container and generator of ShellViews.
20 */ 20 */
21 @JNINamespace("content") 21 @JNINamespace("content")
22 public class ShellManager extends FrameLayout { 22 public class ShellManager extends FrameLayout {
23 23
24 public static final String DEFAULT_SHELL_URL = "http://www.google.com"; 24 public static final String DEFAULT_SHELL_URL = "http://www.google.com";
25 private static boolean sStartup = true; 25 private static boolean sStartup = true;
26 private WindowAndroid mWindow; 26 private WindowAndroid mWindow;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ContentView contentView = shellView.getContentView(); 114 ContentView contentView = shellView.getContentView();
115 if (contentView != null) contentView.onHide(); 115 if (contentView != null) contentView.onHide();
116 shellView.setContentViewRenderView(null); 116 shellView.setContentViewRenderView(null);
117 shellView.setWindow(null); 117 shellView.setWindow(null);
118 removeView(shellView); 118 removeView(shellView);
119 } 119 }
120 120
121 private static native void nativeInit(Object shellManagerInstance); 121 private static native void nativeInit(Object shellManagerInstance);
122 private static native void nativeLaunchShell(String url); 122 private static native void nativeLaunchShell(String url);
123 } 123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698