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