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

Unified Diff: chrome/browser/resources/inline_login/inline_login.js

Issue 931033002: <webview>-based Signin Page: Navigate on Drag and Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/inline_login/inline_login.js
diff --git a/chrome/browser/resources/inline_login/inline_login.js b/chrome/browser/resources/inline_login/inline_login.js
index c98bc12e7df5418ac4c87fc6847528715dc8da6e..684216a9b2bddf53808367e17231a6a941d0b08d 100644
--- a/chrome/browser/resources/inline_login/inline_login.js
+++ b/chrome/browser/resources/inline_login/inline_login.js
@@ -29,6 +29,11 @@ cr.define('inline.login', function() {
authReadyFired = true;
}
+ function onDropLink(e) {
+ // Navigate to the dropped link.
+ window.location.href = e.detail;
+ }
+
function onNewWindow(e) {
window.open(e.detail.targetUrl, '_blank');
e.detail.window.discard();
@@ -48,6 +53,7 @@ cr.define('inline.login', function() {
*/
function initialize() {
authExtHost = new cr.login.GaiaAuthHost('signin-frame');
+ authExtHost.addEventListener('dropLink', onDropLink);
authExtHost.addEventListener('ready', onAuthReady);
authExtHost.addEventListener('newWindow', onNewWindow);
authExtHost.addEventListener('resize', onResize);
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698