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

Side by Side Diff: chrome/browser/resources/identity_api_ui/identity_api_ui.js

Issue 14081014: Identity API: Change WebAuthFlow to use <webview> instead of a normal browser pop-up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome.identity side-by-side with chrome.experimental.identity Created 7 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.identityPrivate.onWebFlowRequest.addListener(
6 function showAuthDialog(key, url, mode) {
7 var options = {
8 frame: 'none',
9 id: key,
10 minWidth: 1024,
11 minHeight: 768,
12 hidden: true
13 };
14 chrome.app.window.create('scope_approval_dialog.html', options,
15 initializeWebFlow);
16
17 function initializeWebFlow(win) {
18 win.contentWindow.addEventListener('load', function(event) {
19 var windowParam;
20 if (mode == 'interactive')
21 windowParam = win;
22 win.contentWindow.start(url, windowParam);
23 });
24 }
25 });
26
OLDNEW
« no previous file with comments | « chrome/browser/resources/identity_api_ui/identity_api_ui.css ('k') | chrome/browser/resources/identity_api_ui/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698