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