Home
last modified time | relevance | path

Searched refs:file_extension (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/chrome/renderer/plugins/
Dplugin_uma.cc126 std::string file_extension; in SrcToPluginType() local
127 ExtractFileExtension(src, &file_extension); in SrcToPluginType()
130 file_extension.c_str())) { in SrcToPluginType()
136 file_extension.c_str())) { in SrcToPluginType()
142 file_extension.c_str())) { in SrcToPluginType()
148 file_extension.c_str())) { in SrcToPluginType()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
Dchecker.py443 file_extension = self._file_extension(file_path)
445 if (file_extension in _CPP_FILE_EXTENSIONS) or (file_path == '-'):
453 elif file_extension == _JSON_FILE_EXTENSION:
455 elif file_extension == _PYTHON_FILE_EXTENSION:
457 elif file_extension in _XML_FILE_EXTENSIONS:
459 elif file_extension == _XCODEPROJ_FILE_EXTENSION:
461 elif file_extension == _PNG_FILE_EXTENSION:
463 elif ((not file_extension and os.path.join("Tools", "Scripts") in file_path) or
464file_extension in _TEXT_FILE_EXTENSIONS or os.path.basename(file_path) == 'TestExpectations'):
475 file_extension = self._file_extension(file_path)
[all …]
Dchecker_unittest.py400 file_extension = "c"
401 file_path = file_base + "." + file_extension
404 self.assertEqual(checker.file_extension, file_extension)
410 file_extension = ""
414 self.assertEqual(checker.file_extension, file_extension)
429 file_extension = "json"
430 file_path = file_base + "." + file_extension
448 file_extension = "css"
449 file_path = file_base + "." + file_extension
486 file_extension = "css"
[all …]
/external/chromium/webkit/glue/
Dsimple_webmimeregistry_impl.cc95 const WebString& file_extension) { in mimeTypeForExtension() argument
98 WebStringToFilePathString(file_extension), &mime_type); in mimeTypeForExtension()
112 FilePath::StringType file_extension; in preferredExtensionForMIMEType() local
114 &file_extension); in preferredExtensionForMIMEType()
115 return FilePathStringToWebString(file_extension); in preferredExtensionForMIMEType()
Dwebdropdata.cc22 file_extension(drag_data.fileExtension()), in WebDropData()
49 result.setFileExtension(file_extension); in ToDragData()
Dwebdropdata.h40 string16 file_extension; member
/external/chromium_org/chrome/browser/chromeos/file_manager/
Dmime_util.cc16 const base::FilePath::StringType file_extension = in GetMimeTypeForPath() local
23 if (file_extension.empty() || in GetMimeTypeForPath()
24 !net::GetWellKnownMimeTypeFromExtension(file_extension.substr(1), in GetMimeTypeForPath()
Dopen_with_browser.h32 const base::FilePath::StringType& file_extension);
Dopen_with_browser.cc177 const base::FilePath::StringType& file_extension) { in ShouldBeOpenedWithPlugin() argument
181 base::FilePath::FromUTF8Unsafe("dummy").AddExtension(file_extension); in ShouldBeOpenedWithPlugin()
/external/chromium_org/webkit/glue/
Dsimple_webmimeregistry_impl.cc68 const WebString& file_extension) { in mimeTypeForExtension() argument
71 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type); in mimeTypeForExtension()
76 const WebString& file_extension) { in wellKnownMimeTypeForExtension() argument
79 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type); in wellKnownMimeTypeForExtension()
/external/chromium_org/cloud_print/gcp20/prototype/
Dprint_job_handler.cc156 std::string file_extension; in CompleteLocalPrintJob() local
160 file_extension = "pdf"; in CompleteLocalPrintJob()
162 file_extension = "pwg"; in CompleteLocalPrintJob()
164 file_extension = "jpg"; in CompleteLocalPrintJob()
177 current_job->second.data.job_name, file_extension)) { in CompleteLocalPrintJob()
214 const std::string& file_extension) { in SavePrintJob() argument
247 directory.AppendASCII("data." + file_extension), in SavePrintJob()
Dprint_job_handler.h62 const std::string& file_extension);
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/
Dcpp.py1174 def __init__(self, clean_lines, file_extension): argument
1177 if file_extension in ['m', 'mm']:
1180 elif file_extension == 'h':
1186 elif file_extension == 'c':
1699 def check_function_definition(filename, file_extension, clean_lines, line_number, function_state, e… argument
1720 elif not file_extension == "h":
1802 def check_spacing(file_extension, clean_lines, line_number, error): argument
2003 if file_extension == 'cpp':
2010 elif file_extension == 'c':
2089 def check_namespace_indentation(clean_lines, line_number, file_extension, file_state, error): argument
[all …]
/external/chromium_org/content/worker/
Dworker_webkitplatformsupport_impl.cc263 const WebString& file_extension) { in mimeTypeForExtension() argument
266 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type)); in mimeTypeForExtension()
271 const WebString& file_extension) { in wellKnownMimeTypeForExtension() argument
274 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type); in wellKnownMimeTypeForExtension()
/external/chromium_org/chrome/common/extensions/api/file_handlers/
Dfile_handlers_parser.cc96 std::string file_extension; in LoadFileHandler() local
98 if (!file_extensions->GetString(i, &file_extension)) { in LoadFileHandler()
105 handler.extensions.insert(file_extension); in LoadFileHandler()
/external/chromium_org/ui/shell_dialogs/gtk/
Dselect_file_dialog_impl_gtk.cc29 std::string* file_extension) { in FileFilterCaseInsensitive() argument
30 return EndsWith(file_info->filename, *file_extension, false); in FileFilterCaseInsensitive()
34 void OnFileFilterDataDestroyed(std::string* file_extension) { in OnFileFilterDataDestroyed() argument
35 delete file_extension; in OnFileFilterDataDestroyed()
247 scoped_ptr<std::string> file_extension( in AddFilters() local
249 fallback_labels.insert(std::string("*").append(*file_extension)); in AddFilters()
254 file_extension.release(), in AddFilters()
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dselect_file_dialog_impl_gtk2.cc54 std::string* file_extension) { in FileFilterCaseInsensitive() argument
55 return EndsWith(file_info->filename, *file_extension, false); in FileFilterCaseInsensitive()
59 void OnFileFilterDataDestroyed(std::string* file_extension) { in OnFileFilterDataDestroyed() argument
60 delete file_extension; in OnFileFilterDataDestroyed()
291 scoped_ptr<std::string> file_extension( in AddFilters() local
293 fallback_labels.insert(std::string("*").append(*file_extension)); in AddFilters()
298 file_extension.release(), in AddFilters()
/external/chromium_org/chrome/browser/chromeos/drive/
Ddrive_app_registry.cc81 const base::FilePath::StringType& file_extension, in GetAppsForFile() argument
87 if (!file_extension.empty()) { in GetAppsForFile()
88 const base::FilePath::StringType without_dot = file_extension.substr(1); in GetAppsForFile()
Ddrive_app_registry.h68 void GetAppsForFile(const base::FilePath::StringType& file_extension,
/external/chromium/chrome/browser/ui/views/tab_contents/
Dtab_contents_drag_win.cc236 if (file_name.value().size() + drop_data.file_extension.size() + 1 > in PrepareDragForFileContents()
239 0, MAX_PATH - drop_data.file_extension.size() - 2)); in PrepareDragForFileContents()
242 file_name = file_name.ReplaceExtension(drop_data.file_extension); in PrepareDragForFileContents()
/external/libvpx/libvpx/tools/
Dcpplint.py2788 def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state, argument
2850 if file_extension == 'h':
3139 def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state, argument
3286 if file_extension == 'h':
3434 if (file_extension == 'h'
3771 def ProcessLine(filename, file_extension, clean_lines, line, argument
3799 CheckStyle(filename, clean_lines, line, file_extension, nesting_state, error)
3800 CheckLanguage(filename, clean_lines, line, file_extension, include_state,
3810 def ProcessFileData(filename, file_extension, lines, error, argument
3836 if file_extension == 'h':
[all …]
/external/chromium/chrome/browser/ui/cocoa/tab_contents/
Dweb_drag_source.mm76 file_name = file_name.ReplaceExtension(UTF16ToUTF8(drop_data.file_extension));
200 SysUTF16ToNSString(dropData_->file_extension))]) {
394 // |dropData_->file_extension| comes with the '.', which we must strip.
395 fileExtension = (dropData_->file_extension.length() > 0) ?
396 SysUTF16ToNSString(dropData_->file_extension.substr(1)) : @"";
/external/chromium_org/content/renderer/
Drenderer_webkitplatformsupport_impl.cc151 const blink::WebString& file_extension);
449 const WebString& file_extension) { in mimeTypeForExtension() argument
451 return SimpleWebMimeRegistryImpl::mimeTypeForExtension(file_extension); in mimeTypeForExtension()
458 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type)); in mimeTypeForExtension()
/external/chromium_org/google_apis/drive/
Ddrive_api_parser.h536 const std::string& file_extension() const { return file_extension_; } in file_extension() function
608 void set_file_extension(const std::string& file_extension) { in set_file_extension() argument
609 file_extension_ = file_extension; in set_file_extension()
Dgdata_wapi_parser.cc542 std::string file_extension = WideToUTF8(file_path.Extension()); in ClassifyEntryKindByFileExtension() local
544 std::string file_extension = file_path.Extension(); in ClassifyEntryKindByFileExtension()
548 if (document_extension && file_extension == document_extension) in ClassifyEntryKindByFileExtension()

12