summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/client_screen.js
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 17:33:39 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 17:33:39 +0000
commit8ef43eae22ccd93174cb1b5a1c55085208d034de (patch)
tree414d13af370bb01b5e9e44d21c1ce4a4472e63d6 /remoting/webapp/client_screen.js
parent15f850f0897d3ed51600474cf79c711eac62d38d (diff)
downloadchromium_src-8ef43eae22ccd93174cb1b5a1c55085208d034de.zip
chromium_src-8ef43eae22ccd93174cb1b5a1c55085208d034de.tar.gz
chromium_src-8ef43eae22ccd93174cb1b5a1c55085208d034de.tar.bz2
Add a button to the web-app to send Ctrl-Alt-Delete to the host.
The button will only be displayed if the client browser supports injectKey(). Detecting and handling Ctrl-Alt-Del in hosts will be implemented separately. BUG=120313 TEST=Manually verify (e.g. using xev on a Linux host) that using the button injects the correct events, or verify that using the button to a Windows host has the same effect it would locally (e.g. shows Task Manager or the Security screen). Review URL: https://chromiumcodereview.appspot.com/9963084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/client_screen.js')
-rw-r--r--remoting/webapp/client_screen.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js
index 0c1c19a..f4976f8 100644
--- a/remoting/webapp/client_screen.js
+++ b/remoting/webapp/client_screen.js
@@ -133,6 +133,18 @@ remoting.disconnect = function() {
};
/**
+ * Sends a Ctrl-Alt-Del sequence to the remoting client.
+ *
+ * @return {void} Nothing.
+ */
+remoting.sendCtrlAltDel = function() {
+ if (remoting.clientSession) {
+ console.log('Sending Ctrl-Alt-Del.');
+ remoting.clientSession.sendCtrlAltDel();
+ }
+};
+
+/**
* If WCS was successfully loaded, proceed with the connection, otherwise
* report an error.
*