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

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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 11 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 2015 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 cr.define('sync.confirmation', function() {
6 'use strict';
7
8 function onConfirm(e) {
9 chrome.send('confirm');
10 }
11
12 function onUndo(e) {
13 chrome.send('undo');
14 }
15
16 function onGoToSettings(e) {
17 chrome.send('goToSettings');
18 }
19
20 function initialize() {
21 $('confirmButton').addEventListener('click', onConfirm);
22 $('undoButton').addEventListener('click', onUndo);
23 $('settingsLink').addEventListener('click', onGoToSettings);
24 chrome.send('initialized');
25 }
26
27 function setUserImageURL(url) {
28 $('profile-picture').src = url;
29 }
30
31 return {
32 initialize: initialize,
33 setUserImageURL: setUserImageURL
34 };
35 });
36
37 document.addEventListener('DOMContentLoaded', sync.confirmation.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698