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_PositionedEventTargeting_h michael@0: #define mozilla_PositionedEventTargeting_h michael@0: michael@0: #include michael@0: #include "mozilla/EventForwards.h" michael@0: michael@0: class nsIFrame; michael@0: struct nsPoint; michael@0: michael@0: namespace mozilla { michael@0: michael@0: enum { michael@0: INPUT_IGNORE_ROOT_SCROLL_FRAME = 0x01 michael@0: }; michael@0: /** michael@0: * Finds the target frame for a pointer event given the event type and location. michael@0: * This can look for frames within a rectangle surrounding the actual location michael@0: * that are suitable targets, to account for inaccurate pointing devices. michael@0: */ michael@0: nsIFrame* michael@0: FindFrameTargetedByInputEvent(const WidgetGUIEvent* aEvent, michael@0: nsIFrame* aRootFrame, michael@0: const nsPoint& aPointRelativeToRootFrame, michael@0: uint32_t aFlags = 0); michael@0: michael@0: } michael@0: michael@0: #endif /* mozilla_PositionedEventTargeting_h */