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

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

Issue 1002883002: Fix up if statement curly braces issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 306
307 /** 307 /**
308 * Enable/Disable navigation(Prev/Next) button if navigation is allowed/disa llowed 308 * Enable/Disable navigation(Prev/Next) button if navigation is allowed/disa llowed
309 * in respective direction. 309 * in respective direction.
310 * @param controlId Id of button to update 310 * @param controlId Id of button to update
311 * @param enabled enable/disable value 311 * @param enabled enable/disable value
312 */ 312 */
313 @CalledByNative 313 @CalledByNative
314 private void enableUiControl(int controlId, boolean enabled) { 314 private void enableUiControl(int controlId, boolean enabled) {
315 if (controlId == 0) mPrevButton.setEnabled(enabled); 315 if (controlId == 0) {
316 else if (controlId == 1) mNextButton.setEnabled(enabled); 316 mPrevButton.setEnabled(enabled);
317 } else if (controlId == 1) {
318 mNextButton.setEnabled(enabled);
319 }
317 } 320 }
318 321
319 /** 322 /**
320 * @return The {@link ViewGroup} currently shown by this Shell. 323 * @return The {@link ViewGroup} currently shown by this Shell.
321 */ 324 */
322 public ViewGroup getContentView() { 325 public ViewGroup getContentView() {
323 return mContentViewCore.getContainerView(); 326 return mContentViewCore.getContainerView();
324 } 327 }
325 328
326 /** 329 /**
(...skipping 15 matching lines...) Expand all
342 Context.INPUT_METHOD_SERVICE); 345 Context.INPUT_METHOD_SERVICE);
343 if (visible) { 346 if (visible) {
344 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT); 347 imm.showSoftInput(mUrlTextView, InputMethodManager.SHOW_IMPLICIT);
345 } else { 348 } else {
346 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0); 349 imm.hideSoftInputFromWindow(mUrlTextView.getWindowToken(), 0);
347 } 350 }
348 } 351 }
349 352
350 private static native void nativeCloseShell(long shellPtr); 353 private static native void nativeCloseShell(long shellPtr);
351 } 354 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698