1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* ***** BEGIN LICENSE BLOCK *****
3 : * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 : *
5 : * The contents of this file are subject to the Mozilla Public License Version
6 : * 1.1 (the "License"); you may not use this file except in compliance with
7 : * the License. You may obtain a copy of the License at
8 : * http://www.mozilla.org/MPL/
9 : *
10 : * Software distributed under the License is distributed on an "AS IS" basis,
11 : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 : * for the specific language governing rights and limitations under the
13 : * License.
14 : *
15 : * The Original Code is mozilla.org code.
16 : *
17 : * The Initial Developer of the Original Code is the Mozilla Corporation.
18 : * Portions created by the Initial Developer are Copyright (C) 2009
19 : * the Initial Developer. All Rights Reserved.
20 : *
21 : * Alternatively, the contents of this file may be used under the terms of
22 : * either of the GNU General Public License Version 2 or later (the "GPL"),
23 : * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
24 : * in which case the provisions of the GPL or the LGPL are applicable instead
25 : * of those above. If you wish to allow use of your version of this file only
26 : * under the terms of either the GPL or the LGPL, and not to allow others to
27 : * use your version of this file under the terms of the MPL, indicate your
28 : * decision by deleting the provisions above and replace them with the notice
29 : * and other provisions required by the GPL or the LGPL. If you do not delete
30 : * the provisions above, a recipient may use your version of this file under
31 : * the terms of any one of the MPL, the GPL or the LGPL.
32 : *
33 : * ***** END LICENSE BLOCK ***** */
34 :
35 : #ifndef nsDOMPopStateEvent_h__
36 : #define nsDOMPopStateEvent_h__
37 :
38 : class nsEvent;
39 :
40 : #include "nsIDOMPopStateEvent.h"
41 : #include "nsDOMEvent.h"
42 : #include "nsIVariant.h"
43 : #include "nsCycleCollectionParticipant.h"
44 :
45 : class nsDOMPopStateEvent : public nsDOMEvent,
46 : public nsIDOMPopStateEvent
47 : {
48 : public:
49 0 : nsDOMPopStateEvent(nsPresContext* aPresContext, nsEvent* aEvent)
50 0 : : nsDOMEvent(aPresContext, aEvent) // state
51 : {
52 0 : }
53 :
54 : virtual ~nsDOMPopStateEvent();
55 :
56 : NS_DECL_ISUPPORTS_INHERITED
57 1464 : NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsDOMPopStateEvent, nsDOMEvent)
58 :
59 : NS_DECL_NSIDOMPOPSTATEEVENT
60 :
61 0 : NS_FORWARD_TO_NSDOMEVENT
62 :
63 : virtual nsresult InitFromCtor(const nsAString& aType,
64 : JSContext* aCx, jsval* aVal);
65 : protected:
66 : nsCOMPtr<nsIVariant> mState;
67 : };
68 :
69 : #endif // nsDOMPopStateEvent_h__
|