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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/Desktop.java

Issue 179003006: Add Help & feedback screens to Android Chromoting client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove whitespace change Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: remoting/android/java/src/org/chromium/chromoting/Desktop.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
index dfad7e777b2d62731c95b0d834114235a9cf1119..f426ae15f1560343cd81eedaf3766466e3af5658 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
@@ -5,7 +5,9 @@
package org.chromium.chromoting;
import android.app.Activity;
+import android.content.Intent;
import android.content.res.Configuration;
+import android.net.Uri;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
@@ -20,6 +22,10 @@ import org.chromium.chromoting.jni.JniInterface;
* A simple screen that does nothing except display a DesktopView and notify it of rotations.
*/
public class Desktop extends Activity {
+ /** Web page to be displayed in the Help screen when launched from this activity. */
+ private static final String HELP_URL =
+ "http://support.google.com/chrome/?p=mobile_crd_connecthost";
+
/** The surface that displays the remote host's desktop feed. */
private DesktopView mRemoteHostDesktop;
@@ -107,6 +113,14 @@ public class Desktop extends Activity {
}
return true;
+ case R.id.actionbar_help:
+ {
+ Intent intent = new Intent(this, HelpActivity.class);
+ intent.setData(Uri.parse(HELP_URL));
+ startActivity(intent);
+ }
+ return true;
+
default:
return super.onOptionsItemSelected(item);
}

Powered by Google App Engine
This is Rietveld 408576698