diff options
author | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-05 23:29:19 +0000 |
---|---|---|
committer | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-05 23:29:19 +0000 |
commit | 932d03d4151d19d8c40824bdcaacd400444b2c6b (patch) | |
tree | 5cbce2fe7c0e3dbec3afdfb96d2c579884397b44 /remoting/webapp | |
parent | 15de1d33d86a1f22923f6f7211a8020ceeec6d4b (diff) | |
download | chromium_src-932d03d4151d19d8c40824bdcaacd400444b2c6b.zip chromium_src-932d03d4151d19d8c40824bdcaacd400444b2c6b.tar.gz chromium_src-932d03d4151d19d8c40824bdcaacd400444b2c6b.tar.bz2 |
Enable alphanumeric input in fullscreen.
Pass flag to webkitRequestFullScreen to enable alphanumeric keyboard input
in fullscreen. (Without the flag, only control keys are enabled.)
BUG=121522
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/10010025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r-- | remoting/webapp/client_session.js | 2 | ||||
-rw-r--r-- | remoting/webapp/jscompiler_hacks.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js index f711bbf..9531294 100644 --- a/remoting/webapp/client_session.js +++ b/remoting/webapp/client_session.js @@ -590,7 +590,7 @@ remoting.ClientSession.prototype.toggleFullScreen_ = function() { if (document.webkitIsFullScreen) { document.webkitCancelFullScreen(); } else { - document.body.webkitRequestFullScreen(); + document.body.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); } }; diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js index 978ff9c..09dc1ba 100644 --- a/remoting/webapp/jscompiler_hacks.js +++ b/remoting/webapp/jscompiler_hacks.js @@ -18,8 +18,12 @@ Document.prototype.webkitCancelFullScreen = function() {}; /** @type {boolean} */ Document.prototype.webkitIsFullScreen; +/** @type {number} */ +Element.ALLOW_KEYBOARD_INPUT; + +/** @param {number} flags /** @return {void} Nothing. */ -Element.prototype.webkitRequestFullScreen = function() {}; +Element.prototype.webkitRequestFullScreen = function(flags) {}; /** @type {{getRandomValues: function(Uint16Array):void}} */ Window.prototype.crypto; |