mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 22:38:35 +00:00
6b6341f075
- Bug 1102048 (Part 20, imgLoader) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (0a8270ba4) - Bug 1102048 (Part 23, encoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (6625ca535) - Bug 1102048 (Part 39, decoders/icon) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (55956f847) - Bug 1102048 (Part 24, decoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (cf2b002a7) - Bug 1102048 (Part 04, ClippedImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (c9f1451ad) - Bug 1102048 (Part 30, imgTools) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2e3378d34) - Bug 1082837 - Track insecure redirects on imgRequest. r=? (466a14e22) - Bug 1139225 (Part 3) - Make OnDataAvailable threadsafe. r=tn (d10208a8b) - Bug 1139225 (Part 1) - Remove unused imgRequest::mBlockingOnload flag. r=tn (c0d80facd) - Bug 1102048 (Part 11, imgRequest) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (63ee15eb8) - Bug 1102048 (Part 38, ShutdownTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (a58d515ed) - Bug 1102048 (Part 37, ProgressTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (04b07cb06) - Bug 1102048 (Part 14, NotificationObserver) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (ca32242a4) - Bug 1102048 (Part 13, RasterImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (8f3931f31) - Bug 1102048 (Part 10, imgFrame) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2f2b22e70) - Bug 1102048 (Part 36, DynamicImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2cce04d2b) - Bug 1102048 (Part 09, Image) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2f3743d2e) - Bug 1102048 (Part 29, imgRequestProxy) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (bf2824c08) - Bug 1102048 (Part 31, SurfaceCache) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (c6849f4d9) - Bug 1102048 (Part 25, header guards) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (bde0a4979) - Bug 1102048 (Part 33, SVGDocument) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (71f5f960c) - Bug 1102048 (Part 05, Decoder) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (48b1d5a80) - Bug 1102048 (Part 34, Multipart) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (fb65aa069) - Bug 1102048 (Part 35, Downscaler) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2eb0be1f7) - Bug 1102048 (Part 19, ImageMetadata) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (749305ddd) - Bug 1102048 (Part 32, FrameAnimator) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (1df4850d6) - Bug 1102048 (Part 26) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (52550fb88) - Bug 1102048 (Part 03) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (438e52a57)
63 lines
2.0 KiB
C++
63 lines
2.0 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* 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 "ScriptedNotificationObserver.h"
|
|
#include "imgIScriptedNotificationObserver.h"
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
namespace mozilla {
|
|
namespace image {
|
|
|
|
NS_IMPL_CYCLE_COLLECTION(ScriptedNotificationObserver, mInner)
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ScriptedNotificationObserver)
|
|
NS_INTERFACE_MAP_ENTRY(imgINotificationObserver)
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
NS_INTERFACE_MAP_END
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(ScriptedNotificationObserver)
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(ScriptedNotificationObserver)
|
|
|
|
ScriptedNotificationObserver::ScriptedNotificationObserver(
|
|
imgIScriptedNotificationObserver* aInner)
|
|
: mInner(aInner)
|
|
{ }
|
|
|
|
NS_IMETHODIMP
|
|
ScriptedNotificationObserver::Notify(imgIRequest* aRequest,
|
|
int32_t aType,
|
|
const nsIntRect* /*aUnused*/)
|
|
{
|
|
if (aType == imgINotificationObserver::SIZE_AVAILABLE) {
|
|
return mInner->SizeAvailable(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::FRAME_UPDATE) {
|
|
return mInner->FrameUpdate(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::FRAME_COMPLETE) {
|
|
return mInner->FrameComplete(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::DECODE_COMPLETE) {
|
|
return mInner->DecodeComplete(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::LOAD_COMPLETE) {
|
|
return mInner->LoadComplete(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::DISCARD) {
|
|
return mInner->Discard(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::IS_ANIMATED) {
|
|
return mInner->IsAnimated(aRequest);
|
|
}
|
|
if (aType == imgINotificationObserver::HAS_TRANSPARENCY) {
|
|
return mInner->HasTransparency(aRequest);
|
|
}
|
|
return NS_OK;
|
|
}
|
|
|
|
} // namespace image
|
|
} // namespace mozilla
|