2010-03-18 22:02:53 -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/. */
|
2010-03-18 22:02:53 -07:00
|
|
|
|
2013-11-20 08:29:03 -08:00
|
|
|
#ifndef mozilla_dom_nsQueryContentEventResult_h
|
|
|
|
#define mozilla_dom_nsQueryContentEventResult_h
|
|
|
|
|
2010-03-18 22:02:53 -07:00
|
|
|
#include "nsIQueryContentEventResult.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsRect.h"
|
2012-06-14 19:31:55 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-09-24 03:04:14 -07:00
|
|
|
#include "mozilla/EventForwards.h"
|
2010-03-18 22:02:53 -07:00
|
|
|
|
|
|
|
class nsIWidget;
|
|
|
|
|
2012-06-14 19:31:55 -07:00
|
|
|
class nsQueryContentEventResult MOZ_FINAL : public nsIQueryContentEventResult
|
2010-03-18 22:02:53 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsQueryContentEventResult();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIQUERYCONTENTEVENTRESULT
|
|
|
|
|
2013-10-01 00:23:00 -07:00
|
|
|
void SetEventResult(nsIWidget* aWidget,
|
|
|
|
const mozilla::WidgetQueryContentEvent &aEvent);
|
2010-03-18 22:02:53 -07:00
|
|
|
|
|
|
|
protected:
|
2014-06-23 12:56:07 -07:00
|
|
|
~nsQueryContentEventResult();
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mEventID;
|
2010-03-18 22:02:53 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mOffset;
|
2010-03-18 22:02:53 -07:00
|
|
|
nsString mString;
|
|
|
|
nsIntRect mRect;
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mSucceeded;
|
|
|
|
bool mReversed;
|
2010-03-18 22:02:53 -07:00
|
|
|
};
|
2013-11-20 08:29:03 -08:00
|
|
|
|
|
|
|
#endif // mozilla_dom_nsQueryContentEventResult_h
|