Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10916305: Move shared file type images into chrome://theme/ scheme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function MockEventSource() { 5 function MockEventSource() {
6 this.listeners_ = []; 6 this.listeners_ = [];
7 } 7 }
8 8
9 /** 9 /**
10 * Add a listener. 10 * Add a listener.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 { 152 {
153 taskId: extensionId + '|gallery', 153 taskId: extensionId + '|gallery',
154 title: 'View', 154 title: 'View',
155 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm| ogv|ogx|webm)$/i, 155 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm| ogv|ogx|webm)$/i,
156 iconUrl: emptyIcon 156 iconUrl: emptyIcon
157 }, 157 },
158 { 158 {
159 taskId: 'fake-extension-id|fake-item', 159 taskId: 'fake-extension-id|fake-item',
160 title: 'External action', 160 title: 'External action',
161 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm| ogv|ogx|webm)$/i, 161 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm| ogv|ogx|webm)$/i,
162 iconUrl: 'images/files/file_types/generic.png' 162 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_GENERIC'
163 }, 163 },
164 { 164 {
165 taskId: 'fake-extension-id|upload', 165 taskId: 'fake-extension-id|upload',
166 title: 'Upload video', 166 title: 'Upload video',
167 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i, 167 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i,
168 iconUrl: 'images/files/file_types/video.png' 168 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_VIDEO'
169 }, 169 },
170 { 170 {
171 taskId: extensionId + '|view-in-browser', 171 taskId: extensionId + '|view-in-browser',
172 title: 'View', 172 title: 'View',
173 regexp: /\.(html?|log|mht|mhtml|txt)$/i, 173 regexp: /\.(html?|log|mht|mhtml|txt)$/i,
174 iconUrl: emptyIcon 174 iconUrl: emptyIcon
175 }, 175 },
176 { 176 {
177 taskId: extensionId + '|view-pdf', 177 taskId: extensionId + '|view-pdf',
178 title: 'View', 178 title: 'View',
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 852
853 setWindowHeight: function(height) { 853 setWindowHeight: function(height) {
854 this.popup_.style.height = height + 'px'; 854 this.popup_.style.height = height + 'px';
855 }, 855 },
856 856
857 closeWindow: function() { 857 closeWindow: function() {
858 this.popup_.parentNode.removeChild(this.popup_); 858 this.popup_.parentNode.removeChild(this.popup_);
859 this.popup_ = null; 859 this.popup_ = null;
860 } 860 }
861 }; 861 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698