2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// This class implements a XUL "command" event. See nsIDOMXULCommandEvent.idl
|
|
|
|
|
|
|
|
#ifndef nsDOMXULCommandEvent_h_
|
|
|
|
#define nsDOMXULCommandEvent_h_
|
|
|
|
|
|
|
|
#include "nsDOMUIEvent.h"
|
|
|
|
#include "nsIDOMXULCommandEvent.h"
|
|
|
|
|
|
|
|
class nsDOMXULCommandEvent : public nsDOMUIEvent,
|
|
|
|
public nsIDOMXULCommandEvent
|
|
|
|
{
|
|
|
|
public:
|
2013-03-09 03:34:29 -08:00
|
|
|
nsDOMXULCommandEvent(mozilla::dom::EventTarget* aOwner,
|
|
|
|
nsPresContext* aPresContext, nsInputEvent* aEvent);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2009-06-30 00:56:40 -07:00
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsDOMXULCommandEvent, nsDOMUIEvent)
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_DECL_NSIDOMXULCOMMANDEVENT
|
|
|
|
|
|
|
|
// Forward our inherited virtual methods to the base class
|
|
|
|
NS_FORWARD_TO_NSDOMUIEVENT
|
|
|
|
|
2009-06-30 00:56:40 -07:00
|
|
|
protected:
|
2007-03-22 10:30:00 -07:00
|
|
|
// Convenience accessor for the event
|
2009-06-30 00:56:40 -07:00
|
|
|
nsInputEvent* Event() {
|
|
|
|
return static_cast<nsInputEvent*>(mEvent);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2009-06-30 00:56:40 -07:00
|
|
|
|
|
|
|
nsCOMPtr<nsIDOMEvent> mSourceEvent;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsDOMXULCommandEvent_h_
|