зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1047483 - patch 5 - Remove 'name' in the FilePropertyBag dictionary, r=smaug
This commit is contained in:
Родитель
5ee327d0bc
Коммит
1fd21e550b
|
@ -55,6 +55,7 @@ class FileInfo;
|
|||
};
|
||||
|
||||
struct BlobPropertyBag;
|
||||
struct ChromeFilePropertyBag;
|
||||
struct FilePropertyBag;
|
||||
class FileImpl;
|
||||
|
||||
|
@ -176,21 +177,21 @@ public:
|
|||
static already_AddRefed<File>
|
||||
Constructor(const GlobalObject& aGlobal,
|
||||
File& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv);
|
||||
|
||||
// File constructor - ChromeOnly
|
||||
static already_AddRefed<File>
|
||||
Constructor(const GlobalObject& aGlobal,
|
||||
const nsAString& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv);
|
||||
|
||||
// File constructor - ChromeOnly
|
||||
static already_AddRefed<File>
|
||||
Constructor(const GlobalObject& aGlobal,
|
||||
nsIFile* aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv);
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
||||
|
|
|
@ -631,7 +631,7 @@ File::Constructor(
|
|||
/* static */ already_AddRefed<File>
|
||||
File::Constructor(const GlobalObject& aGlobal,
|
||||
File& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
if (!nsContentUtils::IsCallerChrome()) {
|
||||
|
@ -653,7 +653,7 @@ File::Constructor(const GlobalObject& aGlobal,
|
|||
/* static */ already_AddRefed<File>
|
||||
File::Constructor(const GlobalObject& aGlobal,
|
||||
nsIFile* aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
if (!nsContentUtils::IsCallerChrome()) {
|
||||
|
@ -677,7 +677,7 @@ File::Constructor(const GlobalObject& aGlobal,
|
|||
/* static */ already_AddRefed<File>
|
||||
File::Constructor(const GlobalObject& aGlobal,
|
||||
const nsAString& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
if (!nsContentUtils::IsCallerChrome()) {
|
||||
|
|
|
@ -236,7 +236,7 @@ MultipartFileImpl::GetMozFullPathInternal(nsAString& aFilename,
|
|||
|
||||
void
|
||||
MultipartFileImpl::InitializeChromeFile(File& aBlob,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
NS_ASSERTION(!mImmutable, "Something went wrong ...");
|
||||
|
@ -268,7 +268,7 @@ MultipartFileImpl::InitializeChromeFile(File& aBlob,
|
|||
void
|
||||
MultipartFileImpl::InitializeChromeFile(nsPIDOMWindow* aWindow,
|
||||
nsIFile* aFile,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
bool aIsFromNsIFile,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
|
@ -340,7 +340,7 @@ MultipartFileImpl::InitializeChromeFile(nsPIDOMWindow* aWindow,
|
|||
void
|
||||
MultipartFileImpl::InitializeChromeFile(nsPIDOMWindow* aWindow,
|
||||
const nsAString& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
nsCOMPtr<nsIFile> file;
|
||||
|
|
|
@ -67,17 +67,17 @@ public:
|
|||
ErrorResult& aRv);
|
||||
|
||||
void InitializeChromeFile(File& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv);
|
||||
|
||||
void InitializeChromeFile(nsPIDOMWindow* aWindow,
|
||||
const nsAString& aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
ErrorResult& aRv);
|
||||
|
||||
void InitializeChromeFile(nsPIDOMWindow* aWindow,
|
||||
nsIFile* aData,
|
||||
const FilePropertyBag& aBag,
|
||||
const ChromeFilePropertyBag& aBag,
|
||||
bool aIsFromNsIFile,
|
||||
ErrorResult& aRv);
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@ interface nsIFile;
|
|||
ScalarValueString fileName, optional FilePropertyBag options),
|
||||
|
||||
// These constructors are just for chrome callers:
|
||||
Constructor(Blob fileBits, optional FilePropertyBag options),
|
||||
Constructor(nsIFile fileBits, optional FilePropertyBag options),
|
||||
Constructor(ScalarValueString fileBits, optional FilePropertyBag options),
|
||||
Constructor(Blob fileBits, optional ChromeFilePropertyBag options),
|
||||
Constructor(nsIFile fileBits, optional ChromeFilePropertyBag options),
|
||||
Constructor(ScalarValueString fileBits, optional ChromeFilePropertyBag options),
|
||||
|
||||
Exposed=(Window,Worker)]
|
||||
interface File : Blob {
|
||||
|
@ -28,11 +28,16 @@ interface File : Blob {
|
|||
dictionary FilePropertyBag {
|
||||
|
||||
DOMString type = "";
|
||||
DOMString name = ""; // TODO: to remove!
|
||||
long long lastModified;
|
||||
|
||||
};
|
||||
|
||||
dictionary ChromeFilePropertyBag : FilePropertyBag {
|
||||
|
||||
DOMString name = "";
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface File {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче