michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_nsQueryContentEventResult_h michael@0: #define mozilla_dom_nsQueryContentEventResult_h michael@0: michael@0: #include "nsIQueryContentEventResult.h" michael@0: #include "nsString.h" michael@0: #include "nsRect.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/EventForwards.h" michael@0: michael@0: class nsIWidget; michael@0: michael@0: class nsQueryContentEventResult MOZ_FINAL : public nsIQueryContentEventResult michael@0: { michael@0: public: michael@0: nsQueryContentEventResult(); michael@0: ~nsQueryContentEventResult(); michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIQUERYCONTENTEVENTRESULT michael@0: michael@0: void SetEventResult(nsIWidget* aWidget, michael@0: const mozilla::WidgetQueryContentEvent &aEvent); michael@0: michael@0: protected: michael@0: uint32_t mEventID; michael@0: michael@0: uint32_t mOffset; michael@0: nsString mString; michael@0: nsIntRect mRect; michael@0: michael@0: bool mSucceeded; michael@0: bool mReversed; michael@0: }; michael@0: michael@0: #endif // mozilla_dom_nsQueryContentEventResult_h