2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00: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-19 05:02:53 +00:00
|
|
|
|
2013-11-20 16:29:03 +00:00
|
|
|
#ifndef mozilla_dom_nsQueryContentEventResult_h
|
|
|
|
#define mozilla_dom_nsQueryContentEventResult_h
|
|
|
|
|
2010-03-19 05:02:53 +00:00
|
|
|
#include "nsIQueryContentEventResult.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsRect.h"
|
2015-05-13 05:36:00 +00:00
|
|
|
#include "Units.h"
|
2012-06-15 02:31:55 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-09-24 10:04:14 +00:00
|
|
|
#include "mozilla/EventForwards.h"
|
2010-03-19 05:02:53 +00:00
|
|
|
|
|
|
|
class nsIWidget;
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class nsQueryContentEventResult final : public nsIQueryContentEventResult
|
2010-03-19 05:02:53 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsQueryContentEventResult();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIQUERYCONTENTEVENTRESULT
|
|
|
|
|
2013-10-01 07:23:00 +00:00
|
|
|
void SetEventResult(nsIWidget* aWidget,
|
|
|
|
const mozilla::WidgetQueryContentEvent &aEvent);
|
2010-03-19 05:02:53 +00:00
|
|
|
|
|
|
|
protected:
|
2014-06-23 19:56:07 +00:00
|
|
|
~nsQueryContentEventResult();
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mEventID;
|
2010-03-19 05:02:53 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mOffset;
|
2015-04-14 05:27:37 +00:00
|
|
|
uint32_t mTentativeCaretOffset;
|
2010-03-19 05:02:53 +00:00
|
|
|
nsString mString;
|
2015-02-04 20:21:03 +00:00
|
|
|
mozilla::LayoutDeviceIntRect mRect;
|
2010-03-19 05:02:53 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
bool mSucceeded;
|
|
|
|
bool mReversed;
|
2010-03-19 05:02:53 +00:00
|
|
|
};
|
2013-11-20 16:29:03 +00:00
|
|
|
|
2015-02-04 20:21:03 +00:00
|
|
|
#endif // mozilla_dom_nsQueryContentEventResult_h
|