2008-09-18 02:47:21 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2008-09-18 02:47:21 -07:00
|
|
|
|
|
|
|
#ifndef nsDOMNotifyPaintEvent_h_
|
|
|
|
#define nsDOMNotifyPaintEvent_h_
|
|
|
|
|
|
|
|
#include "nsIDOMNotifyPaintEvent.h"
|
|
|
|
#include "nsDOMEvent.h"
|
2009-09-03 21:49:18 -07:00
|
|
|
#include "nsPresContext.h"
|
|
|
|
|
|
|
|
class nsPaintRequestList;
|
2008-09-18 02:47:21 -07:00
|
|
|
|
2009-10-21 02:38:39 -07:00
|
|
|
class nsDOMNotifyPaintEvent : public nsDOMEvent,
|
|
|
|
public nsIDOMNotifyPaintEvent
|
2008-09-18 02:47:21 -07:00
|
|
|
{
|
|
|
|
public:
|
2009-09-03 21:49:18 -07:00
|
|
|
nsDOMNotifyPaintEvent(nsPresContext* aPresContext,
|
|
|
|
nsEvent* aEvent,
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t aEventType,
|
2009-09-03 21:49:18 -07:00
|
|
|
nsInvalidateRequestList* aInvalidateRequests);
|
2008-09-18 02:47:21 -07:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
NS_DECL_NSIDOMNOTIFYPAINTEVENT
|
|
|
|
|
|
|
|
// Forward to base class
|
2012-06-10 16:44:50 -07:00
|
|
|
NS_FORWARD_TO_NSDOMEVENT_NO_SERIALIZATION_NO_DUPLICATION
|
|
|
|
NS_IMETHOD DuplicatePrivateData()
|
|
|
|
{
|
|
|
|
return nsDOMEvent::DuplicatePrivateData();
|
|
|
|
}
|
|
|
|
NS_IMETHOD_(void) Serialize(IPC::Message* aMsg, bool aSerializeInterfaceType);
|
|
|
|
NS_IMETHOD_(bool) Deserialize(const IPC::Message* aMsg, void** aIter);
|
2008-09-18 02:47:21 -07:00
|
|
|
private:
|
|
|
|
nsRegion GetRegion();
|
2009-06-23 02:09:05 -07:00
|
|
|
|
2009-09-03 21:49:18 -07:00
|
|
|
nsTArray<nsInvalidateRequestList::Request> mInvalidateRequests;
|
2008-09-18 02:47:21 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsDOMNotifyPaintEvent_h_
|