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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java

Issue 600983002: [Checkstyle] Fix misc style issues in Java files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.chromoting.jni; 5 package org.chromium.chromoting.jni;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.AlertDialog; 8 import android.app.AlertDialog;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.DialogInterface; 10 import android.content.DialogInterface;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 @CalledByNative 239 @CalledByNative
240 private static void displayAuthenticationPrompt(boolean pairingSupported) { 240 private static void displayAuthenticationPrompt(boolean pairingSupported) {
241 AlertDialog.Builder pinPrompt = new AlertDialog.Builder(sContext); 241 AlertDialog.Builder pinPrompt = new AlertDialog.Builder(sContext);
242 pinPrompt.setTitle(sContext.getString(R.string.title_authenticate)); 242 pinPrompt.setTitle(sContext.getString(R.string.title_authenticate));
243 pinPrompt.setMessage(sContext.getString(R.string.pin_message_android)); 243 pinPrompt.setMessage(sContext.getString(R.string.pin_message_android));
244 pinPrompt.setIcon(android.R.drawable.ic_lock_lock); 244 pinPrompt.setIcon(android.R.drawable.ic_lock_lock);
245 245
246 final View pinEntry = sContext.getLayoutInflater().inflate(R.layout.pin_ dialog, null); 246 final View pinEntry = sContext.getLayoutInflater().inflate(R.layout.pin_ dialog, null);
247 pinPrompt.setView(pinEntry); 247 pinPrompt.setView(pinEntry);
248 248
249 final TextView pinTextView = (TextView)pinEntry.findViewById(R.id.pin_di alog_text); 249 final TextView pinTextView = (TextView) pinEntry.findViewById(R.id.pin_d ialog_text);
250 final CheckBox pinCheckBox = (CheckBox)pinEntry.findViewById(R.id.pin_di alog_check); 250 final CheckBox pinCheckBox = (CheckBox) pinEntry.findViewById(R.id.pin_d ialog_check);
251 251
252 if (!pairingSupported) { 252 if (!pairingSupported) {
253 pinCheckBox.setChecked(false); 253 pinCheckBox.setChecked(false);
254 pinCheckBox.setVisibility(View.GONE); 254 pinCheckBox.setVisibility(View.GONE);
255 } 255 }
256 256
257 pinPrompt.setPositiveButton( 257 pinPrompt.setPositiveButton(
258 R.string.connect_button, new DialogInterface.OnClickListener() { 258 R.string.connect_button, new DialogInterface.OnClickListener() {
259 @Override 259 @Override
260 public void onClick(DialogInterface dialog, int which) { 260 public void onClick(DialogInterface dialog, int which) {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 public static void sendExtensionMessage(String type, String data) { 521 public static void sendExtensionMessage(String type, String data) {
522 if (!sConnected) { 522 if (!sConnected) {
523 return; 523 return;
524 } 524 }
525 525
526 nativeSendExtensionMessage(type, data); 526 nativeSendExtensionMessage(type, data);
527 } 527 }
528 528
529 private static native void nativeSendExtensionMessage(String type, String da ta); 529 private static native void nativeSendExtensionMessage(String type, String da ta);
530 } 530 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698