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

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

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch with findbugs_known_bugs.txt changes. Created 6 years, 3 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_shell; 5 package org.chromium.content_shell;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.drawable.ClipDrawable; 8 import android.graphics.drawable.ClipDrawable;
9 import android.text.TextUtils; 9 import android.text.TextUtils;
10 import android.util.AttributeSet; 10 import android.util.AttributeSet;
11 import android.view.KeyEvent; 11 import android.view.KeyEvent;
12 import android.view.View; 12 import android.view.View;
13 import android.view.ViewGroup; 13 import android.view.ViewGroup;
14 import android.view.inputmethod.EditorInfo; 14 import android.view.inputmethod.EditorInfo;
15 import android.view.inputmethod.InputMethodManager; 15 import android.view.inputmethod.InputMethodManager;
16 import android.widget.EditText; 16 import android.widget.EditText;
17 import android.widget.FrameLayout; 17 import android.widget.FrameLayout;
18 import android.widget.ImageButton; 18 import android.widget.ImageButton;
19 import android.widget.LinearLayout; 19 import android.widget.LinearLayout;
20 import android.widget.TextView; 20 import android.widget.TextView;
21 import android.widget.TextView.OnEditorActionListener; 21 import android.widget.TextView.OnEditorActionListener;
22 22
23 import org.chromium.base.CalledByNative; 23 import org.chromium.base.CalledByNative;
24 import org.chromium.base.JNINamespace; 24 import org.chromium.base.JNINamespace;
25 import org.chromium.content.browser.ContentView; 25 import org.chromium.content.browser.ContentView;
26 import org.chromium.content.browser.ContentViewClient; 26 import org.chromium.content.browser.ContentViewClient;
27 import org.chromium.content.browser.ContentViewCore; 27 import org.chromium.content.browser.ContentViewCore;
28 import org.chromium.content.browser.ContentViewRenderView; 28 import org.chromium.content.browser.ContentViewRenderView;
29 import org.chromium.content.browser.LoadUrlParams; 29 import org.chromium.content_public.browser.LoadUrlParams;
30 import org.chromium.ui.base.WindowAndroid; 30 import org.chromium.ui.base.WindowAndroid;
31 31
32 /** 32 /**
33 * Container for the various UI components that make up a shell window. 33 * Container for the various UI components that make up a shell window.
34 */ 34 */
35 @JNINamespace("content") 35 @JNINamespace("content")
36 public class Shell extends LinearLayout { 36 public class Shell extends LinearLayout {
37 37
38 private static final long COMPLETED_PROGRESS_TIMEOUT_MS = 200; 38 private static final long COMPLETED_PROGRESS_TIMEOUT_MS = 200;
39 39
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 Context.INPUT_METHOD_SERVICE); 318 Context.INPUT_METHOD_SERVICE);
319 if (visible) { 319 if (visible) {
320 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); 320 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT);
321 } else { 321 } else {
322 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); 322 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0);
323 } 323 }
324 } 324 }
325 325
326 private static native void nativeCloseShell(long shellPtr); 326 private static native void nativeCloseShell(long shellPtr);
327 } 327 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698