summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/shared
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 22:57:54 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 22:57:54 +0000
commit2a7444d52ebf39d5c3db779d75d1a1c440a9902b (patch)
treef360363df1d10e20eb4d32d41f1cfbcb3bd00e60 /chrome/browser/resources/shared
parent903e37906e0e0ad6c7627dabeaac1a87e6e31552 (diff)
downloadchromium_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')
-rw-r--r--chrome/browser/resources/shared/images/downloads_section.pngbin0 -> 4468 bytes
-rw-r--r--chrome/browser/resources/shared/images/filebrowse_back.pngbin0 -> 3090 bytes
-rw-r--r--chrome/browser/resources/shared/images/filebrowse_fullscreen.pngbin0 -> 1005 bytes
-rw-r--r--chrome/browser/resources/shared/images/filebrowse_menu.pngbin0 -> 2853 bytes
-rw-r--r--chrome/browser/resources/shared/images/gear.pngbin0 -> 357 bytes
-rw-r--r--chrome/browser/resources/shared/images/help.gifbin0 -> 205 bytes
-rw-r--r--chrome/browser/resources/shared/images/history_section.pngbin0 -> 4949 bytes
-rw-r--r--chrome/browser/resources/shared/images/icon_file.pngbin0 -> 177 bytes
-rw-r--r--chrome/browser/resources/shared/images/icon_folder.pngbin0 -> 170 bytes
-rw-r--r--chrome/browser/resources/shared/images/icon_media.pngbin0 -> 188 bytes
-rw-r--r--chrome/browser/resources/shared/images/icon_photo.pngbin0 -> 233 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_full_screen.pngbin0 -> 773 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_next.pngbin0 -> 388 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_pause.pngbin0 -> 214 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_play.pngbin0 -> 340 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_playlist.pngbin0 -> 121 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_prev.pngbin0 -> 407 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_vol_high.pngbin0 -> 643 bytes
-rw-r--r--chrome/browser/resources/shared/images/mediaplayer_vol_mute.pngbin0 -> 649 bytes
-rw-r--r--chrome/browser/resources/shared/images/minus.pngbin0 -> 320 bytes
-rw-r--r--chrome/browser/resources/shared/images/otr_icon_standalone.pngbin0 -> 1544 bytes
-rw-r--r--chrome/browser/resources/shared/images/phishing_icon.pngbin0 -> 4645 bytes
-rw-r--r--chrome/browser/resources/shared/images/plus.pngbin0 -> 336 bytes
-rw-r--r--chrome/browser/resources/shared/images/star_small.pngbin0 -> 556 bytes
-rw-r--r--chrome/browser/resources/shared/js/media_common.js19
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
new file mode 100644
index 0000000..e7a7c2d
--- /dev/null
+++ b/chrome/browser/resources/shared/images/downloads_section.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/filebrowse_back.png b/chrome/browser/resources/shared/images/filebrowse_back.png
new file mode 100644
index 0000000..0ec8cc7
--- /dev/null
+++ b/chrome/browser/resources/shared/images/filebrowse_back.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/filebrowse_fullscreen.png b/chrome/browser/resources/shared/images/filebrowse_fullscreen.png
new file mode 100644
index 0000000..92f925d
--- /dev/null
+++ b/chrome/browser/resources/shared/images/filebrowse_fullscreen.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/filebrowse_menu.png b/chrome/browser/resources/shared/images/filebrowse_menu.png
new file mode 100644
index 0000000..d58dbd0
--- /dev/null
+++ b/chrome/browser/resources/shared/images/filebrowse_menu.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/gear.png b/chrome/browser/resources/shared/images/gear.png
new file mode 100644
index 0000000..3dce105
--- /dev/null
+++ b/chrome/browser/resources/shared/images/gear.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/help.gif b/chrome/browser/resources/shared/images/help.gif
new file mode 100644
index 0000000..f49c094
--- /dev/null
+++ b/chrome/browser/resources/shared/images/help.gif
Binary files differ
diff --git a/chrome/browser/resources/shared/images/history_section.png b/chrome/browser/resources/shared/images/history_section.png
new file mode 100644
index 0000000..2640d5ad
--- /dev/null
+++ b/chrome/browser/resources/shared/images/history_section.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/icon_file.png b/chrome/browser/resources/shared/images/icon_file.png
new file mode 100644
index 0000000..1b11e56
--- /dev/null
+++ b/chrome/browser/resources/shared/images/icon_file.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/icon_folder.png b/chrome/browser/resources/shared/images/icon_folder.png
new file mode 100644
index 0000000..d994cc21
--- /dev/null
+++ b/chrome/browser/resources/shared/images/icon_folder.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/icon_media.png b/chrome/browser/resources/shared/images/icon_media.png
new file mode 100644
index 0000000..dcf0cef
--- /dev/null
+++ b/chrome/browser/resources/shared/images/icon_media.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/icon_photo.png b/chrome/browser/resources/shared/images/icon_photo.png
new file mode 100644
index 0000000..f98e113
--- /dev/null
+++ b/chrome/browser/resources/shared/images/icon_photo.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_full_screen.png b/chrome/browser/resources/shared/images/mediaplayer_full_screen.png
new file mode 100644
index 0000000..750c39e
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_full_screen.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_next.png b/chrome/browser/resources/shared/images/mediaplayer_next.png
new file mode 100644
index 0000000..9e42b4e
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_next.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_pause.png b/chrome/browser/resources/shared/images/mediaplayer_pause.png
new file mode 100644
index 0000000..9b83ca5
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_pause.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_play.png b/chrome/browser/resources/shared/images/mediaplayer_play.png
new file mode 100644
index 0000000..e2b4b81
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_play.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_playlist.png b/chrome/browser/resources/shared/images/mediaplayer_playlist.png
new file mode 100644
index 0000000..932fd98
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_playlist.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_prev.png b/chrome/browser/resources/shared/images/mediaplayer_prev.png
new file mode 100644
index 0000000..c02eccd
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_prev.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_vol_high.png b/chrome/browser/resources/shared/images/mediaplayer_vol_high.png
new file mode 100644
index 0000000..3b073b7
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_vol_high.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png b/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png
new file mode 100644
index 0000000..0cf8741
--- /dev/null
+++ b/chrome/browser/resources/shared/images/mediaplayer_vol_mute.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/minus.png b/chrome/browser/resources/shared/images/minus.png
new file mode 100644
index 0000000..7f8e396
--- /dev/null
+++ b/chrome/browser/resources/shared/images/minus.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/otr_icon_standalone.png b/chrome/browser/resources/shared/images/otr_icon_standalone.png
new file mode 100644
index 0000000..872120b
--- /dev/null
+++ b/chrome/browser/resources/shared/images/otr_icon_standalone.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/phishing_icon.png b/chrome/browser/resources/shared/images/phishing_icon.png
new file mode 100644
index 0000000..b23e76b
--- /dev/null
+++ b/chrome/browser/resources/shared/images/phishing_icon.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/plus.png b/chrome/browser/resources/shared/images/plus.png
new file mode 100644
index 0000000..35e8d6b
--- /dev/null
+++ b/chrome/browser/resources/shared/images/plus.png
Binary files differ
diff --git a/chrome/browser/resources/shared/images/star_small.png b/chrome/browser/resources/shared/images/star_small.png
new file mode 100644
index 0000000..59fe948
--- /dev/null
+++ b/chrome/browser/resources/shared/images/star_small.png
Binary files differ
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);
+}