Closed Bug 455378 Opened 14 years ago Closed 14 years ago

WinCE missing APIs and Windows Messages (plus compiler warning)


(Core :: Widget: Win32, defect)

Windows Mobile 6 Professional
Not set





(Reporter: wolfe, Assigned: wolfe)



(Keywords: mobile)


(1 file)

Removed code inside nsWindow::SynthesizeNativeKeyEvent, since much of the code to synthesize native key events is not available in WinMobile devices.

Remove WM_QUERYENDSESSION and WM_MOUSEACTIVATE window message handling - since WinMobile does not provide these windows messages.

Cleaned up compiler warning by casting int to long inside an NS_ASSERTION
Attachment #338701 - Flags: review?(doug.turner)
Comment on attachment 338701 [details] [diff] [review]
NSWINDOW.CPP changes for WinCE compiling

+    NS_ASSERTION(sIMECursorPosition <= (long)sIMECompUnicode->Length(), "illegal pos");

long -> PRInt32

Lots of stuff is going to be busted if we can't send native key events.  I would be okay with this change _temporarily_.

File a bug, change the comment to include the bug number.

ere, okay with that?
Attachment #338701 - Flags: superreview?(emaijala)
Attachment #338701 - Flags: review?(doug.turner)
Attachment #338701 - Flags: review+
Comment on attachment 338701 [details] [diff] [review]
NSWINDOW.CPP changes for WinCE compiling

Of course a proper implementation would be nice, but having this done temporarily is ok with (just add that too to the comment). I'm not a super-reviewer though...
Attachment #338701 - Flags: superreview?(emaijala) → superreview+
Assignee: nobody → wolfe
Comment on attachment 338701 [details] [diff] [review]
NSWINDOW.CPP changes for WinCE compiling

mfinkle raises the point that it might be better to stub out the enum values rather than adding more ifdefs.

please also file a follow up bug to investigate further what we're missing by these events not firing.
Attachment #338701 - Flags: superreview+ → superreview?
checked in on Tue Sep 23 21:10:58 2008 -0700
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #338701 - Flags: superreview?
Added two new bugs:

 Bug 459264 -  WinCE nsWindow::SynthesizeNativeKeyEvent() needs re-programming


 Bug 459273 -  WinCE Explore whether App Activate Messages Are Received

to handle left-over issues with this bug.
Component: General → Widget: Win32
Product: Fennec → Core
QA Contact: general → win32
You need to log in before you can comment on or make changes to this bug.