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

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

Issue 7277010: Apply CSP to about:conflicts page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/resources/about_conflicts.html ('k') | chrome/browser/ui/webui/conflicts_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /**
Evan Stade 2011/07/14 19:33:44 license header
Tom Sepez 2011/07/14 19:37:54 Done.
2 * This variable structure is here to document the structure that the template
3 * expects to correctly populate the page.
4 */
5 var moduleListDataFormat = {
6 'moduleList': [
7 {
8 'type': 'The type of module found',
9 'type_description':
10 'The type of module (string), defaults to blank for regular modules',
11 'status': 'The module status',
12 'location': 'The module path, not including filename',
13 'name': 'The name of the module',
14 'product_name': 'The name of the product the module belongs to',
15 'description': 'The module description',
16 'version': 'The module version',
17 'digital_signer': 'The signer of the digital certificate for the module',
18 'recommended_action': 'The help tips bitmask',
19 'possible_resolution': 'The help tips in string form',
20 'help_url': 'The link to the Help Center article'
21 }
22 ]
23 };
24
25 /**
26 * Takes the |moduleListData| input argument which represents data about
27 * the currently available modules and populates the html jstemplate
28 * with that data. It expects an object structure like the above.
29 * @param {Object} moduleListData Information about available modules
30 */
31 function renderTemplate(moduleListData) {
32 // This is the javascript code that processes the template:
33 var input = new JsEvalContext(moduleListData);
34 var output = document.getElementById('modulesTemplate');
35 jstProcess(input, output);
36 }
37
38 /**
39 * Asks the C++ ConflictsDOMHandler to get details about the available modules
40 * and return detailed data about the configuration. The ConflictsDOMHandler
41 * should reply to returnModuleList() (below).
42 */
43 function requestModuleListData() {
44 chrome.send('requestModuleList', []);
45 }
46
47 /**
48 * Called by the WebUI to re-populate the page with data representing the
49 * current state of installed modules.
50 */
51 function returnModuleList(moduleListData) {
52 renderTemplate(moduleListData);
53 document.getElementById('loading-message').style.visibility = 'hidden';
54 document.getElementById('body-container').style.visibility = 'visible';
55 }
56
57 // Get data and have it displayed upon loading.
58 document.addEventListener('DOMContentLoaded', requestModuleListData);
59
Evan Stade 2011/07/14 19:33:44 extra line or rietveld error?
Tom Sepez 2011/07/14 19:37:54 Done.
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_conflicts.html ('k') | chrome/browser/ui/webui/conflicts_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698