author Ehsan Akhgari <ehsan@mozilla.com>
Fri, 21 Feb 2014 09:11:33 -0500
changeset 187083 fc033be15f374bb0011ef20bb7e319c6e5b3aed5
parent 167161 55ea77a28509f776da6f4d18e3d2cc5b8b4e8a68
child 188969 3ea20343a2ce46a27f46599e7744dfe2881150bf
permissions -rw-r--r--
Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree

/* -*- 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/. */

#ifndef mozilla_EventForwards_h__
#define mozilla_EventForwards_h__

#include <stdint.h>

 * XXX Following enums should be in BasicEvents.h.  However, currently, it's
 *     impossible to use foward delearation for enum.

 * Return status for event processors.
enum nsEventStatus
  // The event is ignored, do default processing
  // The event is consumed, don't do default processing
  // The event is consumed, but do default processing

namespace mozilla {

typedef uint16_t Modifiers;

#define NS_DEFINE_KEYNAME(aCPPName, aDOMKeyName) \

enum KeyNameIndex
#include "nsDOMKeyNameList.h"
  // If a DOM keyboard event is synthesized by script, this is used.  Then,
  // specified key name should be stored and use it as .key value.


} // namespace mozilla

 * All header files should include this header instead of *Events.h.

namespace mozilla {

#define NS_EVENT_CLASS(aPrefix, aName) class aPrefix##aName;
#define NS_ROOT_EVENT_CLASS(aPrefix, aName) NS_EVENT_CLASS(aPrefix, aName)

#include "mozilla/EventClassList.h"


// BasicEvents.h
struct EventFlags;

// TextEvents.h
struct AlternativeCharCode;

// TextRange.h
struct TextRangeStyle;
struct TextRange;

typedef TextRange* TextRangeArray;

} // namespace mozilla

#endif // mozilla_EventForwards_h__