2007-03-22 10:30:00 -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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsDOMTextEvent_h__
|
|
|
|
#define nsDOMTextEvent_h__
|
|
|
|
|
2013-05-29 13:43:41 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-09-25 04:21:19 -07:00
|
|
|
#include "mozilla/EventForwards.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsDOMUIEvent.h"
|
|
|
|
#include "nsIPrivateTextEvent.h"
|
|
|
|
#include "nsPrivateTextRange.h"
|
|
|
|
|
|
|
|
class nsDOMTextEvent : public nsDOMUIEvent,
|
|
|
|
public nsIPrivateTextEvent
|
|
|
|
{
|
|
|
|
public:
|
2013-03-09 03:34:29 -08:00
|
|
|
nsDOMTextEvent(mozilla::dom::EventTarget* aOwner,
|
2013-10-01 00:22:59 -07:00
|
|
|
nsPresContext* aPresContext,
|
|
|
|
mozilla::WidgetTextEvent* aEvent);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// Forward to base class
|
|
|
|
NS_FORWARD_TO_NSDOMUIEVENT
|
|
|
|
|
|
|
|
// nsIPrivateTextEvent interface
|
2013-05-29 13:43:41 -07:00
|
|
|
NS_IMETHOD GetText(nsString& aText) MOZ_OVERRIDE;
|
|
|
|
NS_IMETHOD_(already_AddRefed<nsIPrivateTextRangeList>) GetInputRange() MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
protected:
|
|
|
|
nsString mText;
|
|
|
|
nsRefPtr<nsPrivateTextRangeList> mTextRange;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsDOMTextEvent_h__
|