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

Side by Side Diff: chrome/browser/resources/extensions/extension_activity.js

Issue 10449010: Fix the extension activity log UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Evan's comments. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('extension_activity', function() { 5 cr.define('extension_activity', function() {
6 'use strict'; 6 'use strict';
7 7
8 function initialize() { 8 function initialize() {
9 i18nTemplate.process(document, templateData);
10
11 var params = parseQueryParams(location); 9 var params = parseQueryParams(location);
12 if (params.extensionId) 10 if (params.extensionId)
13 chrome.send('requestExtensionData', [params.extensionId]); 11 chrome.send('requestExtensionData', [params.extensionId]);
14 } 12 }
15 13
16 function handleExtensionData(result) { 14 function handleExtensionData(result) {
17 var extension = result.extension; 15 var extension = result.extension;
18 16
19 var item = document.querySelector('.extension-list-item'); 17 var item = document.querySelector('.extension-list-item');
20 item.style.backgroundImage = 'url(' + extension.icon + ')'; 18 item.style.backgroundImage = 'url(' + extension.icon + ')';
(...skipping 19 matching lines...) Expand all
40 $('extension-activity-list').appendChild(item); 38 $('extension-activity-list').appendChild(item);
41 } 39 }
42 40
43 return { 41 return {
44 initialize: initialize, 42 initialize: initialize,
45 handleExtensionData: handleExtensionData, 43 handleExtensionData: handleExtensionData,
46 handleExtensionActivity: handleExtensionActivity 44 handleExtensionActivity: handleExtensionActivity
47 }; 45 };
48 }); 46 });
49 47
50 document.addEventListener('DOMContentLoaded', extension_activity.initialize); 48 window.addEventListener('load', extension_activity.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extension_activity.html ('k') | chrome/browser/resources/extensions/extension_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698