summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/event_handlers.js
Commit message (Collapse)AuthorAgeFilesLines
* Add Print Screen option to Send Keys menu.rmsousa@chromium.org2012-08-311-0/+2
| | | | | | | | | | BUG=144550 TEST=Manual: linux-(linux, mac) me2me, linux-linux it2me. Review URL: https://chromiumcodereview.appspot.com/10908026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154534 0039d316-1c4b-4281-b951-d872f2087c98
* This CL cleans up error handling when fetching the user's email address. We ↵jamiewalch@google.com2012-07-201-1/+1
| | | | | | | | | | | | | | do this once per login, immediately after getting the OAuth2 refresh token, so failures should be rare, but we've had at least one report of problems, and the current failure mode is to tell the user that the service is unavailable. Specifically, this CL: * Adds an onError callback so that the caller can be notified of exactly what went wrong. * Makes sure that a valid email address exists before allowing the user to interact with the app (the alternative is to make accessing the email address asynchronous everywhere, which gets messy very quickly). BUG=137713 TEST= Review URL: https://chromiumcodereview.appspot.com/10807026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147588 0039d316-1c4b-4281-b951-d872f2087c98
* Pass OAuth token refresh errors back to the caller.jamiewalch@google.com2012-06-251-2/+13
| | | | | | | | | | | | | | | | | | This allows the app to advise the user to sign back in to Chromoting only when we believe it will actually help. As a bonus, the unhelpfully-named ERROR_GENERIC is now gone--apart from OAuth refresh failures, it was being used for edge-cases where we don't expect anything to go wrong (these now use the more suitably-named ERROR_UNEXPECTED). As part of fixing this, I have cleaned up some OAuth call points that were written before callWithToken existed, and which weren't using it. BUG=122899,130794 TEST=Corrupt the oauth2-refresh-token value in HTML Local Storage Review URL: https://chromiumcodereview.appspot.com/10579012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144059 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Clear all localStorage when the user signs out.simonmorris@chromium.org2012-04-091-1/+1
| | | | | | | | BUG=122091 Review URL: https://chromiumcodereview.appspot.com/10022001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131371 0039d316-1c4b-4281-b951-d872f2087c98
* Don't propagate the click event if the user disables the daemon.jamiewalch@google.com2012-04-061-2/+6
| | | | | | | | | BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/10009032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131056 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting Me2Me installation flow for Mac.lambroslambrou@chromium.org2012-04-051-1/+7
| | | | | | | | | BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9979023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130800 0039d316-1c4b-4281-b951-d872f2087c98
* Moved special-case handling of 'home' mode.jamiewalch@google.com2012-04-041-5/+5
| | | | | | | | | | | | | This was causing the host list to be reloaded when the confirmation dialog was dismissed, which was often too fast for the delete to have been committed in the directory. BUG=121013 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9947004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130734 0039d316-1c4b-4281-b951-d872f2087c98
* Add a button to the web-app to send Ctrl-Alt-Delete to the host.wez@chromium.org2012-04-041-0/+2
| | | | | | | | | | | | | 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
* Filter the local host id from the list.jamiewalch@google.com2012-04-031-4/+1
| | | | | | | | | BUG=121151 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9956092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130420 0039d316-1c4b-4281-b951-d872f2087c98
* Add completion callbacks in the DaemonController interface.sergeyu@chromium.org2012-04-031-5/+2
| | | | | | | | | BUG=121493,120950 Review URL: http://codereview.chromium.org/9965084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130342 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up daemon control UI:jamiewalch@google.com2012-03-301-1/+7
| | | | | | | | | | | | | * Improve spacing of top-level UI. * Add a Cancel button to the PIN dialog (UI still needs work). * Add an OK button to the "finished" and "error" dialogs. BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129797 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Me2Me setup flow.sergeyu@chromium.org2012-03-291-2/+2
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9921001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129692 0039d316-1c4b-4281-b951-d872f2087c98
* Added first-run infographic screens for IT2Me and Me2Me.jamiewalch@google.com2012-03-291-1/+5
| | | | | | | | | BUG=120184 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9903008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129643 0039d316-1c4b-4281-b951-d872f2087c98
* Added screen options menu.jamiewalch@google.com2012-03-291-1/+0
| | | | | | | | | BUG=119092 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9884001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129535 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Adds a button that cancels PIN entry.simonmorris@chromium.org2012-03-201-0/+4
| | | | | | | | BUG=116813 Review URL: https://chromiumcodereview.appspot.com/9731014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127705 0039d316-1c4b-4281-b951-d872f2087c98
* Move client UI into a modal dialog.jamiewalch@google.com2012-02-271-0/+2
| | | | | | | | | BUG=115350 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9476014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123817 0039d316-1c4b-4281-b951-d872f2087c98
* Make the host UI appear as an overlay on the home screen.jamiewalch@google.com2012-02-241-3/+3
| | | | | | | | | BUG=115350 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9458001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123386 0039d316-1c4b-4281-b951-d872f2087c98
* Make daemon state orthogonal to UI mode.jamiewalch@google.com2012-02-231-1/+1
| | | | | | | | | | | | | | Having the daemon state, which affects the home page, mixed in with the general UI modal state is going to cause problems when the home page is visible behind modal dialogs (it will essentially mean to AppModes for each dialog). Better to have it as an orthogonal state. BUG=115350 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9372128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123153 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed choice.{css,html} to main.{css,html}jamiewalch@google.com2012-02-161-1/+1
| | | | | | | | | | | Also, fixed mode change bug if daemon is supported. BUG=None TEST=I no longer get that "What was I thinking?" feeling when looking at the filename of our landing page. Review URL: https://chromiumcodereview.appspot.com/9420016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122356 0039d316-1c4b-4281-b951-d872f2087c98
* Added support for stop/start and set PIN.jamiewalch@google.com2012-02-131-5/+14
| | | | | | | | | | | This CL adds basic support to the web-app for starting and stopping the daemon process and for changing the PIN. It's not pretty and there's a lot of missing functionality, but it's enough to start making progress on a per-platform basis. BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9372047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121754 0039d316-1c4b-4281-b951-d872f2087c98
* Change tool-bar behaviour to click-to-show. This is based on user feedback ↵jamiewalch@google.com2012-02-011-0/+2
| | | | | | | | | | | the auto-show behaviour makes it hard to access the top of the host screen. By auto-expanding only the stub, the inaccessible part of the host screen is reduced. BUG=110211 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9129009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120093 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Change the "Your session has ended" OK button to redirect home aftergarykac@chromium.org2012-01-231-1/+8
| | | | | | | | | | | | | a successful session. It still goes to the Access Code page if there was an error. BUG=none TEST=none Review URL: http://codereview.chromium.org/9214012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118739 0039d316-1c4b-4281-b951-d872f2087c98
* Update the window.location back when returning to the main menu.wez@chromium.org2012-01-211-1/+1
| | | | | | | | | | | This is required to prevent the Me2Me session URL remaining in effect, and causing the session to be reconnected if the page is refreshed, or the browser closed and reloaded with tabs reopened. BUG=110830 Review URL: http://codereview.chromium.org/9264032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118607 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Fix js compiler warninggarykac@chromium.org2012-01-141-1/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9133020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117757 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting: Add home and reconnect button to me2me finish page.garykac@chromium.org2012-01-131-3/+9
| | | | | | | | | | | | Change "OK" button for it2me to go home instead of to the access code page. BUG=109703 TEST=none Review URL: http://codereview.chromium.org/9107066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117694 0039d316-1c4b-4281-b951-d872f2087c98
* Rename webapp_it2me to remoting_webapp and move it from webapp/me2mom to webapp/sergeyu@chromium.org2012-01-111-0/+69
The remoting webapp is not it2me specific anymore. Renaming stuff and moving it to avoid confusion, particularly for the newcomers. Review URL: http://codereview.chromium.org/9148043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117322 0039d316-1c4b-4281-b951-d872f2087c98