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

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

Issue 187663005: Implement feedback in Chromoting Help & Feedback screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DEPS Created 6 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 | Annotate | Revision Log
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; 5 package org.chromium.chromoting;
6 6
7 import android.accounts.Account; 7 import android.accounts.Account;
8 import android.accounts.AccountManager; 8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback; 9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture; 10 import android.accounts.AccountManagerFuture;
11 import android.accounts.AuthenticatorException; 11 import android.accounts.AuthenticatorException;
12 import android.accounts.OperationCanceledException; 12 import android.accounts.OperationCanceledException;
13 import android.app.ActionBar; 13 import android.app.ActionBar;
14 import android.app.Activity; 14 import android.app.Activity;
15 import android.app.AlertDialog; 15 import android.app.AlertDialog;
16 import android.app.ProgressDialog; 16 import android.app.ProgressDialog;
17 import android.content.DialogInterface; 17 import android.content.DialogInterface;
18 import android.content.Intent; 18 import android.content.Intent;
19 import android.content.SharedPreferences; 19 import android.content.SharedPreferences;
20 import android.content.res.Configuration; 20 import android.content.res.Configuration;
21 import android.net.Uri;
22 import android.os.Bundle; 21 import android.os.Bundle;
23 import android.provider.Settings; 22 import android.provider.Settings;
24 import android.util.Log; 23 import android.util.Log;
25 import android.view.Menu; 24 import android.view.Menu;
26 import android.view.MenuItem; 25 import android.view.MenuItem;
27 import android.widget.ArrayAdapter; 26 import android.widget.ArrayAdapter;
28 import android.widget.ListView; 27 import android.widget.ListView;
29 import android.widget.TextView; 28 import android.widget.TextView;
30 import android.widget.Toast; 29 import android.widget.Toast;
31 30
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 207
209 /** Called whenever an action bar button is pressed. */ 208 /** Called whenever an action bar button is pressed. */
210 @Override 209 @Override
211 public boolean onOptionsItemSelected(MenuItem item) { 210 public boolean onOptionsItemSelected(MenuItem item) {
212 switch (item.getItemId()) { 211 switch (item.getItemId()) {
213 case R.id.actionbar_directoryrefresh: 212 case R.id.actionbar_directoryrefresh:
214 refreshHostList(); 213 refreshHostList();
215 return true; 214 return true;
216 215
217 case R.id.actionbar_help: 216 case R.id.actionbar_help:
218 { 217 HelpActivity.launch(this, HELP_URL);
219 Intent intent = new Intent(this, HelpActivity.class);
220 intent.setData(Uri.parse(HELP_URL));
221 startActivity(intent);
222 }
223 return true; 218 return true;
224 219
225 default: 220 default:
226 return super.onOptionsItemSelected(item); 221 return super.onOptionsItemSelected(item);
227 } 222 }
228 } 223 }
229 224
230 /** Called when the user taps on a host entry. */ 225 /** Called when the user taps on a host entry. */
231 public void connectToHost(HostInfo host) { 226 public void connectToHost(HostInfo host) {
232 SessionConnector connector = new SessionConnector(this, this, mHostListL oader); 227 SessionConnector connector = new SessionConnector(this, this, mHostListL oader);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // Unreachable, but required by Google Java style and findbugs. 411 // Unreachable, but required by Google Java style and findbugs.
417 assert false : "Unreached"; 412 assert false : "Unreached";
418 } 413 }
419 414
420 if (dismissProgress && mProgressIndicator != null) { 415 if (dismissProgress && mProgressIndicator != null) {
421 mProgressIndicator.dismiss(); 416 mProgressIndicator.dismiss();
422 mProgressIndicator = null; 417 mProgressIndicator = null;
423 } 418 }
424 } 419 }
425 } 420 }
OLDNEW
« no previous file with comments | « remoting/android/java/DEPS ('k') | remoting/android/java/src/org/chromium/chromoting/Desktop.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698