summaryrefslogtreecommitdiffstats
path: root/remoting/resources
diff options
context:
space:
mode:
authorsolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 01:49:09 +0000
committersolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 01:49:09 +0000
commit8812dce4ee4efb8c652e6150bb7085c8e40c63da (patch)
tree985556b5f2a374e532fbfb3004ae52765fae1fb9 /remoting/resources
parent9992898cbe9872e5b5e0b9cead5b02ea9e830756 (diff)
downloadchromium_src-8812dce4ee4efb8c652e6150bb7085c8e40c63da.zip
chromium_src-8812dce4ee4efb8c652e6150bb7085c8e40c63da.tar.gz
chromium_src-8812dce4ee4efb8c652e6150bb7085c8e40c63da.tar.bz2
Add the beginnings of a Chromoting Android app
Currently, this has only the following capabilities: + Authenticate using a Google account on the phone + Query and display the host list from the Chromoting directory server + Connect to and communicate with the host service over XMPP/ICE + Establish peer-to-peer channels for communicating with the host service Notable missing features are: - Display the host's desktop - Handle any kind of input Review URL: https://chromiumcodereview.appspot.com/19506004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/resources')
-rw-r--r--remoting/resources/layout/host.xml9
-rw-r--r--remoting/resources/layout/main.xml12
-rw-r--r--remoting/resources/strings.xml54
3 files changed, 75 insertions, 0 deletions
diff --git a/remoting/resources/layout/host.xml b/remoting/resources/layout/host.xml
new file mode 100644
index 0000000..c1b4b2d
--- /dev/null
+++ b/remoting/resources/layout/host.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/host_label"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:drawableLeft="@drawable/icon_host"
+ android:drawablePadding="15sp"
+ android:padding="15sp"
+ android:gravity="center_vertical"/>
diff --git a/remoting/resources/layout/main.xml b/remoting/resources/layout/main.xml
new file mode 100644
index 0000000..d5f419e
--- /dev/null
+++ b/remoting/resources/layout/main.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent">
+ <TextView android:id="@+id/hostList_greeting"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"/>
+ <ListView android:id="@+id/hostList_chooser"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent"/>
+</LinearLayout>
diff --git a/remoting/resources/strings.xml b/remoting/resources/strings.xml
new file mode 100644
index 0000000..284c2ed
--- /dev/null
+++ b/remoting/resources/strings.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--User-facing strings for the Android app-->
+<!--TODO(solb) Merge in with localized strings-->
+<resources>
+ <!--Application-wide attributes-->
+ <string name="app_name">Chromoting</string>
+
+ <!--Instructional blurbs-->
+ <string name="inst_host_list">My computers:</string>
+
+ <!--Dialog box messages-->
+ <string name="pin_entry_title">Authenticate to host</string>
+ <string name="pin_entry_message">Enter the host\'s PIN</string>
+ <string name="pin_entry_connect">Connect</string>
+ <string name="pin_entry_cancel">Cancel</string>
+
+ <!--Informative messages-->
+ <string name="msg_pin_canceled">No PIN was provided, so the connection attempt was canceled</string>
+ <string name="msg_pin_entered">Attempting to authenticate to specified host with provided PIN</string>
+
+ <!--Error messages-->
+ <string name="error_unknown">Unexpected error</string>
+ <string name="error_auth_canceled">Authentication prompt canceled by user</string>
+ <string name="error_no_accounts">Device not linked to any Google accounts</string>
+ <string name="error_auth_failed">Authentication with specified account failed</string>
+ <string name="error_cataloging_hosts">Unable to display host list</string>
+ <string name="error_displaying_host">Unable to display host entry</string>
+ <string name="error_unexpected_response">Unexpected response from directory server</string>
+ <string name="error_reading_host">Unable to read host entry</string>
+
+ <!--Protocol states (see remoting/protocol/connection_to_host.h)-->
+ <string-array name="protoc_states">
+ <item>Initializing protocol</item>
+ <item>Connecting to host</item>
+ <item>Authenticated to host</item>
+ <item>Connected to host</item>
+ <item>Connection failed</item>
+ <item>Connection closed</item>
+ </string-array>
+
+ <!--Protocol errors (see remoting/protocol/errors.h)-->
+ <string-array name="protoc_errors">
+ <item></item>
+ <item>Host is offline</item>
+ <item>Host rejected connection</item>
+ <item>Host using incompatible protocol</item>
+ <item>Host rejected authentication</item>
+ <item>Unable to establish data channel</item>
+ <item>Bad signal</item>
+ <item>Signal timed out</item>
+ <item>Host received too many bad PINs</item>
+ <item>Unknown error</item>
+ </string-array>
+</resources>