tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsQueryContentEventResult.h (1334B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_dom_nsQueryContentEventResult_h
      8 #define mozilla_dom_nsQueryContentEventResult_h
      9 
     10 #include "Units.h"
     11 #include "mozilla/EventForwards.h"
     12 #include "mozilla/Maybe.h"
     13 #include "mozilla/widget/IMEData.h"
     14 #include "nsIQueryContentEventResult.h"
     15 #include "nsRect.h"
     16 #include "nsString.h"
     17 #include "nsTArray.h"
     18 
     19 class nsIWidget;
     20 
     21 class nsQueryContentEventResult final : public nsIQueryContentEventResult {
     22 public:
     23  explicit nsQueryContentEventResult(mozilla::WidgetQueryContentEvent&& aEvent);
     24  NS_DECL_ISUPPORTS
     25  NS_DECL_NSIQUERYCONTENTEVENTRESULT
     26 
     27  void SetEventResult(nsIWidget* aWidget);
     28 
     29 protected:
     30  ~nsQueryContentEventResult() = default;
     31 
     32  mozilla::EventMessage mEventMessage;
     33 
     34  mozilla::Maybe<mozilla::OffsetAndData<uint32_t>> mOffsetAndData;
     35  mozilla::Maybe<uint32_t> mTentativeCaretOffset;
     36  mozilla::LayoutDeviceIntRect mRect;
     37  CopyableTArray<mozilla::LayoutDeviceIntRect> mRectArray;
     38 
     39  bool mSucceeded;
     40  bool mReversed;
     41 };
     42 
     43 #endif  // mozilla_dom_nsQueryContentEventResult_h