2010-03-19 08:02:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
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
|
|
|
|
|
|
|
#include "nsIQueryContentEventResult.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsRect.h"
|
2012-06-15 06:31:55 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2010-03-19 08:02:53 +03:00
|
|
|
|
|
|
|
class nsQueryContentEvent;
|
|
|
|
class nsIWidget;
|
|
|
|
|
2012-06-15 06:31:55 +04:00
|
|
|
class nsQueryContentEventResult MOZ_FINAL : public nsIQueryContentEventResult
|
2010-03-19 08:02:53 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsQueryContentEventResult();
|
|
|
|
~nsQueryContentEventResult();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIQUERYCONTENTEVENTRESULT
|
|
|
|
|
|
|
|
void SetEventResult(nsIWidget* aWidget, const nsQueryContentEvent &aEvent);
|
|
|
|
|
|
|
|
protected:
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t mEventID;
|
2010-03-19 08:02:53 +03:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t mOffset;
|
2010-03-19 08:02:53 +03:00
|
|
|
nsString mString;
|
|
|
|
nsIntRect mRect;
|
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mSucceeded;
|
|
|
|
bool mReversed;
|
2010-03-19 08:02:53 +03:00
|
|
|
};
|