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.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.annotations.CalledByNative; |
24 import org.chromium.base.JNINamespace; | 24 import org.chromium.base.annotations.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_public.browser.LoadUrlParams; | 29 import org.chromium.content_public.browser.LoadUrlParams; |
30 import org.chromium.content_public.browser.NavigationController; | 30 import org.chromium.content_public.browser.NavigationController; |
31 import org.chromium.content_public.browser.WebContents; | 31 import org.chromium.content_public.browser.WebContents; |
32 import org.chromium.ui.base.WindowAndroid; | 32 import org.chromium.ui.base.WindowAndroid; |
33 | 33 |
34 /** | 34 /** |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 Context.INPUT_METHOD_SERVICE); | 345 Context.INPUT_METHOD_SERVICE); |
346 if (visible) { | 346 if (visible) { |
347 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); | 347 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); |
348 } else { | 348 } else { |
349 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); | 349 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); |
350 } | 350 } |
351 } | 351 } |
352 | 352 |
353 private static native void nativeCloseShell(long shellPtr); | 353 private static native void nativeCloseShell(long shellPtr); |
354 } | 354 } |
OLD | NEW |