image/public/imgINotificationObserver.idl
author Stephen Pohl <spohl.mozilla.bugs@gmail.com>
Mon, 29 Sep 2014 11:51:39 -0700
changeset 207670 5af85a6db219c32ff98b4178d1c9235d2fe9e151
parent 122849 f5d424f250fe083954edb308e0a581788386c10d
child 216147 72822bad1819522fd518775ef5adfd9177b6c05c
permissions -rw-r--r--
Mac v2 signing - Bug 1064952 - Update Cpp unit test harness for the new v2 bundle structure on OSX. r=jmaher

/* -*- 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 "nsISupports.idl"

interface imgIRequest;

%{C++
#include "nsRect.h"
%}

[ptr] native nsIntRect(nsIntRect);

[scriptable, builtinclass, uuid(ac65c702-7771-4f6d-b18b-1c7d806ce3c1)]
interface imgINotificationObserver : nsISupports
{
  const long SIZE_AVAILABLE = 1;
  const long FRAME_UPDATE = 2;
  const long FRAME_COMPLETE = 3;
  const long LOAD_COMPLETE = 4;
  const long DECODE_COMPLETE = 5;
  const long DISCARD = 6;
  const long UNLOCKED_DRAW = 7;
  const long IS_ANIMATED = 8;

  [noscript] void notify(in imgIRequest aProxy, in long aType, [const] in nsIntRect aRect);
};