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
|
|
|
|
|
|
|
#include "nsIQueryContentEventResult.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsRect.h"
|
2012-06-14 19:31:55 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2010-03-18 22:02:53 -07:00
|
|
|
|
|
|
|
class nsQueryContentEvent;
|
|
|
|
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();
|
|
|
|
~nsQueryContentEventResult();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIQUERYCONTENTEVENTRESULT
|
|
|
|
|
|
|
|
void SetEventResult(nsIWidget* aWidget, const nsQueryContentEvent &aEvent);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
PRUint32 mEventID;
|
|
|
|
|
|
|
|
PRUint32 mOffset;
|
|
|
|
nsString mString;
|
|
|
|
nsIntRect mRect;
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mSucceeded;
|
|
|
|
bool mReversed;
|
2010-03-18 22:02:53 -07:00
|
|
|
};
|