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

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

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.graphics.drawable.ClipDrawable; 9 import android.graphics.drawable.ClipDrawable;
10 import android.text.TextUtils; 10 import android.text.TextUtils;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 private ImageButton mPrevButton; 62 private ImageButton mPrevButton;
63 private ImageButton mNextButton; 63 private ImageButton mNextButton;
64 private ImageButton mStopReloadButton; 64 private ImageButton mStopReloadButton;
65 65
66 private ClipDrawable mProgressDrawable; 66 private ClipDrawable mProgressDrawable;
67 67
68 private long mNativeShell; 68 private long mNativeShell;
69 private ContentViewRenderView mContentViewRenderView; 69 private ContentViewRenderView mContentViewRenderView;
70 private WindowAndroid mWindow; 70 private WindowAndroid mWindow;
71 71
72 private boolean mLoading = false; 72 private boolean mLoading;
73 private boolean mIsFullscreen = false; 73 private boolean mIsFullscreen;
74 74
75 /** 75 /**
76 * Constructor for inflating via XML. 76 * Constructor for inflating via XML.
77 */ 77 */
78 public Shell(Context context, AttributeSet attrs) { 78 public Shell(Context context, AttributeSet attrs) {
79 super(context, attrs); 79 super(context, attrs);
80 } 80 }
81 81
82 /** 82 /**
83 * Set the SurfaceView being renderered to as soon as it is available. 83 * Set the SurfaceView being renderered to as soon as it is available.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 Context.INPUT_METHOD_SERVICE); 404 Context.INPUT_METHOD_SERVICE);
405 if (visible) { 405 if (visible) {
406 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); 406 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT);
407 } else { 407 } else {
408 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); 408 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0);
409 } 409 }
410 } 410 }
411 411
412 private static native void nativeCloseShell(long shellPtr); 412 private static native void nativeCloseShell(long shellPtr);
413 } 413 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698