summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/about_flash.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/about_flash.html')
-rw-r--r--chrome/browser/resources/about_flash.html44
1 files changed, 9 insertions, 35 deletions
diff --git a/chrome/browser/resources/about_flash.html b/chrome/browser/resources/about_flash.html
index 28d916a..0f3e4be 100644
--- a/chrome/browser/resources/about_flash.html
+++ b/chrome/browser/resources/about_flash.html
@@ -1,5 +1,9 @@
<!DOCTYPE HTML>
<html i18n-values="dir:textdirection;">
+<!-- X-WebKit-CSP is our development name for Content-Security-Policy.
+ TODO(tsepez) rename when Content-security-policy is done.
+-->
+<meta http-equiv="X-WebKit-CSP" content="object-src 'none'; script-src chrome://resources 'self' 'unsafe-eval'">
<head>
<style>
.key {
@@ -10,41 +14,6 @@
margin-left: 15px;
}
</style>
-<script>
- /**
- * Takes the |moduleListData| input argument which represents data about
- * the currently available modules and populates the html jstemplate
- * with that data. It expects an object structure like the above.
- * @param {Object} moduleListData Information about available modules
- */
- function renderTemplate(moduleListData) {
- // This is the javascript code that processes the template:
- var input = new JsEvalContext(moduleListData);
- var output = document.getElementById('flashInfoTemplate');
- jstProcess(input, output);
- }
-
- /**
- * Asks the C++ FlashUIDOMHandler to get details about the Flash and return
- * the data in returnFlashInfo() (below).
- */
- function requestFlashInfo() {
- chrome.send('requestFlashInfo', []);
- }
-
- /**
- * Called by the WebUI to re-populate the page with data representing the
- * current state of Flash.
- */
- function returnFlashInfo(moduleListData) {
- document.getElementById('loading-message').style.visibility = 'hidden';
- document.getElementById('body-container').style.visibility = 'visible';
- renderTemplate(moduleListData);
- }
-
- // Get data and have it displayed upon loading.
- document.addEventListener('DOMContentLoaded', requestFlashInfo);
-</script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="loading-message" i18n-content="loadingMessage">LOADING_MESSAGE</div>
@@ -60,5 +29,10 @@
</table>
</div>
</div>
+<script src="chrome://flash/about_flash.js"></script>
+<script src="chrome://flash/strings.js"></script>
+<script src="chrome://resources/js/i18n_template.js"></script>
+<script src="chrome://resources/js/i18n_process.js"></script>
+<script src="chrome://resources/js/jstemplate_compiled.js"></script>
</body>
</html>