Closed
Bug 930177
Opened 11 years ago
Closed 11 years ago
Consolidate async scroll event handling with keyboard handling
Categories
(Core Graveyard :: Widget: WinRT, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla27
People
(Reporter: jimm, Assigned: jimm)
Details
Attachments
(1 file)
10.62 KB,
patch
|
TimAbraldes
:
review+
|
Details | Diff | Splinter Review |
Currently scroll handling queues win32 events, I'd prefer it queue gecko events, similar to keyboard event handling.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 821246 [details] [diff] [review] patch v.1 I should have consolidated these after I implemented the keyboard event handling. Finally got around to it with some other work. Basically this just switches to queing up gecko events rather than msgs.
Attachment #821246 -
Flags: review?(tabraldes)
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 821246 [details] [diff] [review] patch v.1 I think tim might be on pto.
Attachment #821246 -
Flags: review?(tabraldes) → review?(netzen)
Comment 4•11 years ago
|
||
Comment on attachment 821246 [details] [diff] [review] patch v.1 Review of attachment 821246 [details] [diff] [review]: ----------------------------------------------------------------- I'm around! Sorry for the delay. This looks good, though the As*Event functions throw me off a little. ::: widget/windows/winrt/MetroWidget.cpp @@ +572,5 @@ > + WidgetGUIEvent* newEvent = nullptr; > + switch(aEvent->eventStructType) { > + case NS_WHEEL_EVENT: > + { > + WidgetWheelEvent* oldEvent = aEvent->AsWheelEvent(); It feels like all these As*Event functions could be replaced with |static_cast|s, but that's an idea to ponder another day. Along those lines; should we be checking for a nullptr result from this function? @@ +581,5 @@ > + } > + break; > + case NS_CONTENT_COMMAND_EVENT: > + { > + WidgetContentCommandEvent* oldEvent = aEvent->AsContentCommandEvent(); same comment
Attachment #821246 -
Flags: review?(netzen) → review+
Comment 5•11 years ago
|
||
Thanks for grabbing the review Tim, I have a bunch of updater ones to get at today :)
Assignee | ||
Comment 6•11 years ago
|
||
> ::: widget/windows/winrt/MetroWidget.cpp > @@ +572,5 @@ > > + WidgetGUIEvent* newEvent = nullptr; > > + switch(aEvent->eventStructType) { > > + case NS_WHEEL_EVENT: > > + { > > + WidgetWheelEvent* oldEvent = aEvent->AsWheelEvent(); > > It feels like all these As*Event functions could be replaced with > |static_cast|s, but that's an idea to ponder another day. We're not supposed to use that anymore - https://groups.google.com/forum/#!search/nsGUIEvent.h/mozilla.dev.platform/cHg_ExqEC_U/4ZEozp5f4nwJ > Along those lines; should we be checking for a nullptr result from this > function? I was curious about that as well. Technically these events should not get out of sync like that, and in the replacement As* calls that landed recently we don't. If they do get out of sync, it's a bug that needs to be fixed, in which case we would probably prefer a crash.
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/c74facfb70ab Thanks!
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c74facfb70ab
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
Updated•5 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•