image/public/imgINotificationObserver.idl
author Josh Matthews <josh@joshmatthews.net>
Thu, 11 Oct 2012 21:34:24 -0400
changeset 118678 d35c748b03b0f222767442747c7eab9fa911e9e4
parent 118672 3cd2146a9d6eb1f49db9b86e74787fc03dfef6ca
child 134045 f5d424f250fe083954edb308e0a581788386c10d
permissions -rw-r--r--
Bug 505385 - Part 18: Reduce number of notifications - START_REQUEST/START_CONTAINER -> SIZE_AVAILABLE, remove START_DECODE and START_FRAME. Rename remaining ones for clarity. r=joe

/* -*- 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(90b3d21c-317d-4d96-93c0-12add64a26bf)]
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 IS_ANIMATED = 7;

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