Bug 841119 - Remove unused images and styles from /browser/metro/theme [r=jimm]

This commit is contained in:
Matt Brubeck 2013-02-13 12:32:33 -08:00
parent bac18d9947
commit 5cf2c4dfff
17 changed files with 0 additions and 90 deletions

View File

@ -183,11 +183,6 @@ var ContextCommands = {
target.remove();
},
shortcutBookmark: function cc_shortcutBookmark() {
let target = ContextMenuUI.popupState.target;
Util.createShortcut(target.getAttribute("title"), target.getAttribute("uri"), target.getAttribute("src"), "bookmark");
},
findInPage: function cc_findInPage() {
FindHelperUI.show();
},

View File

@ -281,65 +281,6 @@ let Util = {
* Local system utilities
*/
createShortcut: function Util_createShortcut(aTitle, aURL, aIconURL, aType) {
// The background images are 72px, but Android will resize as needed.
// Bigger is better than too small.
const kIconSize = 72;
const kOverlaySize = 32;
const kOffset = 20;
// We have to fallback to something
aTitle = aTitle || aURL;
let canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
canvas.setAttribute("style", "display: none");
function _createShortcut() {
let icon = canvas.toDataURL("image/png", "");
canvas = null;
try {
let shell = Cc["@mozilla.org/browser/shell-service;1"].createInstance(Ci.nsIShellService);
shell.createShortcut(aTitle, aURL, icon, aType);
} catch(e) {
Cu.reportError(e);
}
}
// Load the main background image first
let image = new Image();
image.onload = function() {
canvas.width = canvas.height = kIconSize;
let ctx = canvas.getContext("2d");
ctx.drawImage(image, 0, 0, kIconSize, kIconSize);
// If we have a favicon, lets draw it next
if (aIconURL) {
let favicon = new Image();
favicon.onload = function() {
// Center the favicon and overlay it on the background
ctx.drawImage(favicon, kOffset, kOffset, kOverlaySize, kOverlaySize);
_createShortcut();
}
favicon.onerror = function() {
Cu.reportError("CreateShortcut: favicon image load error");
}
favicon.src = aIconURL;
} else {
_createShortcut();
}
}
image.onerror = function() {
Cu.reportError("CreateShortcut: background image load error");
}
// Pick the right background
image.src = aIconURL ? "chrome://browser/skin/images/homescreen-blank-hdpi.png"
: "chrome://browser/skin/images/homescreen-default-hdpi.png";
},
copyImageToClipboard: function Util_copyImageToClipboard(aImageLoadingContent) {
let image = aImageLoadingContent.QueryInterface(Ci.nsIImageLoadingContent);
if (!image) {

View File

@ -1,14 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
body {
font-family: helvetica,arial,clean,sans-serif;
color: #69645c;
background: white url("images/aboutBackground.jpg") top center repeat-x;
}
#wrapper {
max-width: 600px;
margin: 0 auto;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 767 B

View File

@ -13,7 +13,6 @@ chrome.jar:
* skin/content.css (content.css)
skin/config.css (config.css)
* skin/forms.css (forms.css)
skin/header.css (header.css)
* skin/platform.css (platform.css)
skin/touchcontrols.css (touchcontrols.css)
skin/netError.css (netError.css)
@ -42,7 +41,6 @@ chrome.jar:
skin/images/firefox-watermark.png (images/firefox-watermark.png)
skin/images/flyout-back-button.png (images/flyout-back-button.png)
skin/images/about-footer.png (images/about-footer.png)
skin/images/aboutBackground.jpg (images/aboutBackground.jpg)
skin/images/button-bg.png (images/button-bg.png)
skin/images/arrowleft-16.png (images/arrowleft-16.png)
skin/images/arrowright-16.png (images/arrowright-16.png)
@ -57,9 +55,6 @@ chrome.jar:
skin/images/arrowbox-up.png (images/arrowbox-up.png)
skin/images/arrowbox-down.png (images/arrowbox-down.png)
skin/images/arrowbox-horiz.png (images/arrowbox-horiz.png)
skin/images/checkmark-hdpi.png (images/checkmark-hdpi.png)
skin/images/check-selected-30.png (images/check-selected-30.png)
skin/images/check-unselected-30.png (images/check-unselected-30.png)
skin/images/favicon-default-32.png (images/favicon-default-32.png)
skin/images/errorpage-warning.png (images/errorpage-warning.png)
skin/images/errorpage-warning.png (images/errorpage-warning.png)
@ -68,23 +63,16 @@ chrome.jar:
skin/images/throbber.png (images/throbber.png)
skin/images/stop-hdpi.png (images/stop-hdpi.png)
skin/images/alert-downloads-30.png (images/alert-downloads-30.png)
skin/images/mozilla-32.png (images/mozilla-32.png)
skin/images/identity-default-hdpi.png (images/identity-default-hdpi.png)
skin/images/identity-ssl-hdpi.png (images/identity-ssl-hdpi.png)
skin/images/identity-ev-hdpi.png (images/identity-ev-hdpi.png)
skin/images/unlocked-hdpi.png (images/unlocked-hdpi.png)
skin/images/locked-hdpi.png (images/locked-hdpi.png)
skin/images/check-30.png (images/check-30.png)
skin/images/search-glass-30.png (images/search-glass-30.png)
skin/images/search-clear-30.png (images/search-clear-30.png)
skin/images/section-expanded-16.png (images/section-expanded-16.png)
skin/images/section-collapsed-16.png (images/section-collapsed-16.png)
skin/images/play-hdpi.png (images/play-hdpi.png)
skin/images/pause-hdpi.png (images/pause-hdpi.png)
skin/images/mute-hdpi.png (images/mute-hdpi.png)
skin/images/unmute-hdpi.png (images/unmute-hdpi.png)
skin/images/scrubber-hdpi.png (images/scrubber-hdpi.png)
skin/images/selection-monocle.png (images/selection-monocle.png)
skin/images/homescreen-blank-hdpi.png (images/homescreen-blank-hdpi.png)
skin/images/homescreen-default-hdpi.png (images/homescreen-default-hdpi.png)
skin/images/appbar-icons.png (images/appbar-icons.png)