mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 13:23:07 +00:00
88786f232f
- Bug 1044102 - Part 0 - Test cases. r=smaug. (e588558b1) - Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug (17702ab3c) - Bug 1044102 - Part 2 - Support ImageBitmap as CanvasImageSource. r=smaug (b9454bbe3) - Bug 1049091 - Console API in workers should not block the script waiting for the main-thread, r=ehsan (08a18bdd5) - Bug 1154076 - Console API must keep the Worker alive when the runnable to the main-thread is dispatched, r=bent (67ca7f850) - Bug 1184541 - Create a StructuredCloneHelperInternal and use it in the Console API, r=smaug (45391c7d9) - fix namespace (808e6e99d) - Bug 1184557 - part 1 - StructuredCloneHelper class for window to window postMessage, r=smaug (19df45161) - Bug 1184557 - part 2 - StructuredCloneHelperInternal::Shutdown, r=smaug (a157c50d0) - Bug 1184995 - StructuredCloneHelper for BroadcastChannel and DataStore, r=smaug (86f901c2f) - namespace fix (a9f89ad33) - Bug 1185569 - Use StructuredCloneHelper in MessagePort, r=smaug (c26235044) - Bug 1188265 - No manual JS_ClearPendingException when StructuredCloneHelper is used, r=smaug (1e9fbe26f)
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "mozilla/dom/FileList.h"
|
|
#include "mozilla/dom/FileListBinding.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(FileList, mFiles, mParent)
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(FileList)
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
|
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMFileList)
|
|
NS_INTERFACE_MAP_ENTRY(nsIDOMFileList)
|
|
NS_INTERFACE_MAP_END
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(FileList)
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(FileList)
|
|
|
|
JSObject*
|
|
FileList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
|
{
|
|
return mozilla::dom::FileListBinding::Wrap(aCx, this, aGivenProto);
|
|
}
|
|
|
|
NS_IMETHODIMP
|
|
FileList::GetLength(uint32_t* aLength)
|
|
{
|
|
*aLength = Length();
|
|
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_IMETHODIMP
|
|
FileList::Item(uint32_t aIndex, nsISupports** aFile)
|
|
{
|
|
nsCOMPtr<nsIDOMBlob> file = Item(aIndex);
|
|
file.forget(aFile);
|
|
return NS_OK;
|
|
}
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|