diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-13 22:57:54 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-13 22:57:54 +0000 |
commit | 2a7444d52ebf39d5c3db779d75d1a1c440a9902b (patch) | |
tree | f360363df1d10e20eb4d32d41f1cfbcb3bd00e60 /chrome/browser/resources/shared | |
parent | 903e37906e0e0ad6c7627dabeaac1a87e6e31552 (diff) | |
download | chromium_src-2a7444d52ebf39d5c3db779d75d1a1c440a9902b.zip chromium_src-2a7444d52ebf39d5c3db779d75d1a1c440a9902b.tar.gz chromium_src-2a7444d52ebf39d5c3db779d75d1a1c440a9902b.tar.bz2 |
Clean up browser_resources.grd:
* Flatten HTML where possible
* Move resources only referenced by files in browser/resources/ into there (and out of the theme dir)
* Remove duplicate/unreferenced resources
* Remove IDs for resources that are inlined due to flattening
* Remove IDR_CHAT_MANAGER_MANIFEST but leave the files on disk (they will be moving elsewhere some time soon)
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2897015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/shared')
25 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/resources/shared/images/downloads_section.png b/chrome/browser/resources/shared/images/downloads_section.png Binary files differnew file mode 100644 index 0000000..e7a7c2d --- /dev/null +++ b/chrome/browser/resources/shared/images/downloads_section.png diff --git a/chrome/browser/resources/shared/images/filebrowse_back.png b/chrome/browser/resources/shared/images/filebrowse_back.png Binary files differnew file mode 100644 index 0000000..0ec8cc7 --- /dev/null +++ b/chrome/browser/resources/shared/images/filebrowse_back.png diff --git a/chrome/browser/resources/shared/images/filebrowse_fullscreen.png b/chrome/browser/resources/shared/images/filebrowse_fullscreen.png Binary files differnew file mode 100644 index 0000000..92f925d --- /dev/null +++ b/chrome/browser/resources/shared/images/filebrowse_fullscreen.png diff --git a/chrome/browser/resources/shared/images/filebrowse_menu.png b/chrome/browser/resources/shared/images/filebrowse_menu.png Binary files differnew file mode 100644 index 0000000..d58dbd0 --- /dev/null +++ b/chrome/browser/resources/shared/images/filebrowse_menu.png diff --git a/chrome/browser/resources/shared/images/gear.png b/chrome/browser/resources/shared/images/gear.png Binary files differnew file mode 100644 index 0000000..3dce105 --- /dev/null +++ b/chrome/browser/resources/shared/images/gear.png diff --git a/chrome/browser/resources/shared/images/help.gif b/chrome/browser/resources/shared/images/help.gif Binary files differnew file mode 100644 index 0000000..f49c094 --- /dev/null +++ b/chrome/browser/resources/shared/images/help.gif diff --git a/chrome/browser/resources/shared/images/history_section.png b/chrome/browser/resources/shared/images/history_section.png Binary files differnew file mode 100644 index 0000000..2640d5ad --- /dev/null +++ b/chrome/browser/resources/shared/images/history_section.png diff --git a/chrome/browser/resources/shared/images/icon_file.png b/chrome/browser/resources/shared/images/icon_file.png Binary files differnew file mode 100644 index 0000000..1b11e56 --- /dev/null +++ b/chrome/browser/resources/shared/images/icon_file.png diff --git a/chrome/browser/resources/shared/images/icon_folder.png b/chrome/browser/resources/shared/images/icon_folder.png Binary files differnew file mode 100644 index 0000000..d994cc21 --- /dev/null +++ b/chrome/browser/resources/shared/images/icon_folder.png diff --git a/chrome/browser/resources/shared/images/icon_media.png b/chrome/browser/resources/shared/images/icon_media.png Binary files differnew file mode 100644 index 0000000..dcf0cef --- /dev/null +++ b/chrome/browser/resources/shared/images/icon_media.png diff --git a/chrome/browser/resources/shared/images/icon_photo.png b/chrome/browser/resources/shared/images/icon_photo.png Binary files differnew file mode 100644 index 0000000..f98e113 --- /dev/null +++ b/chrome/browser/resources/shared/images/icon_photo.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_full_screen.png b/chrome/browser/resources/shared/images/mediaplayer_full_screen.png Binary files differnew file mode 100644 index 0000000..750c39e --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_full_screen.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_next.png b/chrome/browser/resources/shared/images/mediaplayer_next.png Binary files differnew file mode 100644 index 0000000..9e42b4e --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_next.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_pause.png b/chrome/browser/resources/shared/images/mediaplayer_pause.png Binary files differnew file mode 100644 index 0000000..9b83ca5 --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_pause.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_play.png b/chrome/browser/resources/shared/images/mediaplayer_play.png Binary files differnew file mode 100644 index 0000000..e2b4b81 --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_play.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_playlist.png b/chrome/browser/resources/shared/images/mediaplayer_playlist.png Binary files differnew file mode 100644 index 0000000..932fd98 --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_playlist.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_prev.png b/chrome/browser/resources/shared/images/mediaplayer_prev.png Binary files differnew file mode 100644 index 0000000..c02eccd --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_prev.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_vol_high.png b/chrome/browser/resources/shared/images/mediaplayer_vol_high.png Binary files differnew file mode 100644 index 0000000..3b073b7 --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_vol_high.png diff --git a/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png b/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png Binary files differnew file mode 100644 index 0000000..0cf8741 --- /dev/null +++ b/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png diff --git a/chrome/browser/resources/shared/images/minus.png b/chrome/browser/resources/shared/images/minus.png Binary files differnew file mode 100644 index 0000000..7f8e396 --- /dev/null +++ b/chrome/browser/resources/shared/images/minus.png diff --git a/chrome/browser/resources/shared/images/otr_icon_standalone.png b/chrome/browser/resources/shared/images/otr_icon_standalone.png Binary files differnew file mode 100644 index 0000000..872120b --- /dev/null +++ b/chrome/browser/resources/shared/images/otr_icon_standalone.png diff --git a/chrome/browser/resources/shared/images/phishing_icon.png b/chrome/browser/resources/shared/images/phishing_icon.png Binary files differnew file mode 100644 index 0000000..b23e76b --- /dev/null +++ b/chrome/browser/resources/shared/images/phishing_icon.png diff --git a/chrome/browser/resources/shared/images/plus.png b/chrome/browser/resources/shared/images/plus.png Binary files differnew file mode 100644 index 0000000..35e8d6b --- /dev/null +++ b/chrome/browser/resources/shared/images/plus.png diff --git a/chrome/browser/resources/shared/images/star_small.png b/chrome/browser/resources/shared/images/star_small.png Binary files differnew file mode 100644 index 0000000..59fe948 --- /dev/null +++ b/chrome/browser/resources/shared/images/star_small.png diff --git a/chrome/browser/resources/shared/js/media_common.js b/chrome/browser/resources/shared/js/media_common.js new file mode 100644 index 0000000..8528809 --- /dev/null +++ b/chrome/browser/resources/shared/js/media_common.js @@ -0,0 +1,19 @@ +// Copyright (c) 2010 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. + +function pathIsVideoFile(path) { + return /\.(mp4|ogg|mpg|avi|mov)$/i.test(path); +} + +function pathIsAudioFile(path) { + return /\.(mp3|m4a|wav)$/i.test(path); +} + +function pathIsImageFile(path) { + return /\.(jpg|png|gif)$/i.test(path); +} + +function pathIsHtmlFile(path) { + return /\.(htm|html|txt)$/i.test(path); +} |