Commit f8587329 authored by Steven Bennetts's avatar Steven Bennetts Committed by Commit Bot

Eliminate unreferenced about_flash.html

This WebUI does not appear to be referenced anywhere in the code.
'requestFlashInfo' is unimplemented.

Bug: 1015978, 615739
Change-Id: I0cc34d01aa602d7669bfbd1473ae4ba14c898e85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872927
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Auto-Submit: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708297}
parent 27a3706d
...@@ -119,10 +119,6 @@ ...@@ -119,10 +119,6 @@
<include name="IDR_ABOUT_CONFLICTS_HTML" file="resources\conflicts\about_conflicts.html" compress="gzip" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> <include name="IDR_ABOUT_CONFLICTS_HTML" file="resources\conflicts\about_conflicts.html" compress="gzip" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
<include name="IDR_ABOUT_CONFLICTS_JS" file="resources\conflicts\about_conflicts.js" compress="gzip" type="BINDATA" /> <include name="IDR_ABOUT_CONFLICTS_JS" file="resources\conflicts\about_conflicts.js" compress="gzip" type="BINDATA" />
</if> </if>
<if expr="enable_plugins">
<include name="IDR_ABOUT_FLASH_HTML" file="resources\about_flash.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
<include name="IDR_ABOUT_FLASH_JS" file="resources\about_flash.js" type="BINDATA" />
</if>
<if expr="not disable_nacl"> <if expr="not disable_nacl">
<include name="IDR_ABOUT_NACL_HTML" file="resources\about_nacl\about_nacl.html" compress="gzip" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> <include name="IDR_ABOUT_NACL_HTML" file="resources\about_nacl\about_nacl.html" compress="gzip" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
<include name="IDR_ABOUT_NACL_CSS" file="resources\about_nacl\about_nacl.css" compress="gzip" flattenhtml="true" type="chrome_html" /> <include name="IDR_ABOUT_NACL_CSS" file="resources\about_nacl\about_nacl.css" compress="gzip" flattenhtml="true" type="chrome_html" />
......
<!doctype html>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<style>
.key {
font-weight: bold;
}
.value {
margin-left: 15px;
}
</style>
</head>
<body>
<div id="loading-message">$i18n{loadingMessage}</div>
<div id="body-container" style="visibility:hidden">
<div id="header"><h1>$i18n{flashLongTitle}</h1></div>
<div id="flashInfoTemplate">
<table cellpadding="2" cellspacing="0" border="0">
<tr jsselect="flashInfo">
<td><span dir="ltr" jscontent="key" class="key">KEY</span></td>
<td><span dir="ltr" jscontent="value" class="value">VALUE</span></td>
</tr>
</table>
</div>
</div>
<script src="chrome://flash/about_flash.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
<script src="chrome://resources/js/util.js"></script>
</body>
</html>
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* 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:
const input = new JsEvalContext(moduleListData);
const output = $('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.
* @param {Object} moduleListData Information about available modules.
*/
function returnFlashInfo(moduleListData) {
$('loading-message').style.visibility = 'hidden';
$('body-container').style.visibility = 'visible';
renderTemplate(moduleListData);
}
// Get data and have it displayed upon loading.
document.addEventListener('DOMContentLoaded', requestFlashInfo);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment