Closed Bug 473687 Opened 16 years ago Closed 14 years ago

Widget removal of unneeded WinCE stuff

Categories

(Core :: Widget: Win32, defect)

x86
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: dougt, Assigned: emorley)

References

Details

Attachments

(4 files, 5 obsolete files)

Attached patch patch v.1 (obsolete) (deleted) — Splinter Review
No description provided.
Attachment #357072 - Flags: review?
Attachment #357072 - Flags: review? → review?(emaijala)
Comment on attachment 357072 [details] [diff] [review] patch v.1 r=me for the remaining nsScreenWin.cpp part.
Attachment #357072 - Flags: review?(emaijala) → review+
Blocks: 614720
OS: Windows XP → Windows CE
Whiteboard: [patchlove]
Version: unspecified → Trunk
Doug, I'm happy to unbitrot this, but before I do so: 1) Is this still wanted? ie: Your reply in bug 614720 comment 2 implies hesitance to strip out WinCE stuff. However, Mike's comment in bug 647389 comment 4 seems to imply that removing WinCE is acceptable, given that a lot of things would need to change if WinCE was supported in the future anyway. 2) There is a lot more other widget WINCE stuff that can be stripped out, per: http://mxr.mozilla.org/mozilla-central/search?string=wince&find=widget ...would you want me to do that too?
(In reply to comment #2) > 1) Is this still wanted? Answering my own question: WinCE/Windows Mobile support has already been removed from the main build system, Spidermonkey, mobile installer, in-app updater and so on (see bug 614720, bug 554087 and all their dependants); so building isn't possible on WinCE anyway. Until such point where MS decide to release a Windows Phone 7 NDK and the decision is made to port to that platform, the WinCE/WinMO code is unnecessary cruft that is only going to complicate code maintenance, so IMHO should be removed. In X years time if a port goes ahead, and if any of the old WinCE code is deemed still useful for reference; then that's what a VCS is for. > 2) There is a lot more other widget WINCE stuff that can be stripped out, per: > http://mxr.mozilla.org/mozilla-central/search?string=wince&find=widget Since the bug title is about widget code in general; going to just cover it all here: http://mxr.mozilla.org/mozilla-central/search?string=wince&find=%2Fwidget%2F&tree=mozilla-central http://mxr.mozilla.org/mozilla-central/search?string=windows+ce&find=%2Fwidget%2F&tree=mozilla-central http://mxr.mozilla.org/mozilla-central/search?string=windows+mob&find=%2Fwidget%2F&tree=mozilla-central
Assignee: nobody → bmo
Status: NEW → ASSIGNED
Attachment #357072 - Attachment is obsolete: true
Attachment #357072 - Flags: review+
Almost done with the patch, but quick question: Any idea whether SND_PURGE is still required? http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound.cpp#118 > #ifndef SND_PURGE > // Not available on Windows CE, and according to MSDN > // doesn't do anything on recent windows either. > #define SND_PURGE 0 > #endif It is only ever set to 0 and is only used here: http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound.cpp#144 and http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound.cpp#229 Also, the MSDN doc here says it's not supported: http://msdn.microsoft.com/en-us/library/dd743680%28VS.85%29.aspx
Whiteboard: [patchlove]
Attached patch Part A - File removal (obsolete) (deleted) — Splinter Review
Hg rm: nsWindowCE.(h|cpp) nsClipboardCE.(h|cpp)
Attachment #527164 - Flags: review?(doug.turner)
Attached patch Part B - Main ifdef removal (obsolete) (deleted) — Splinter Review
Removes all WinCE & Windows Mobile ifdef'ed code from widget/* nsWindowGfx::OnSettingsChangeGfx is now empty as it previously only contained |ifdef WINCE_WINDOWS_MOBILE| reachable code. Will remove the placeholder comment separately (in part D) to keep things easier to follow.
Attachment #527169 - Flags: review?(doug.turner)
Attached patch Part C - Remove ENABLE_IME_MOUSE_HANDLING (obsolete) (deleted) — Splinter Review
After part B is applied, ENABLE_IME_MOUSE_HANDLING is always defined as 1: http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsIMM32Handler.h#61 This patch removes the now superfluous ENABLE_IME_MOUSE_HANDLING define/ifdefs: http://mxr.mozilla.org/mozilla-central/search?string=ENABLE_IME_MOUSE_HANDLING
Attachment #527171 - Flags: review?(doug.turner)
After part B is applied, nsWindowGfx::OnSettingsChangeGfx is now just an empty stub: https://bugzilla.mozilla.org/attachment.cgi?id=527169&action=diff#a/widget/src/windows/nsWindowGfx.cpp_sec2 Its only caller is nsWindow::OnSettingsChange, which once the redundant call to nsWindowGfx::OnSettingsChangeGfx is removed, also now doesn't do anything: http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsWindow.cpp#7668 Therefore this patch removes... - nsWindowGfx::OnSettingsChangeGfx - nsWindow::OnSettingsChange - The only call to nsWindow::OnSettingsChange: http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsWindow.cpp#5501
Attachment #527173 - Flags: review?(doug.turner)
Note: Parts C & D require B to have been applied first, or they won't apply cleanly.
Comment on attachment 527164 [details] [diff] [review] Part A - File removal rs+
Attachment #527164 - Flags: review?(doug.turner) → review+
Comment on attachment 527169 [details] [diff] [review] Part B - Main ifdef removal rs+
Attachment #527169 - Flags: review?(doug.turner) → review+
Attachment #527171 - Flags: review?(doug.turner) → review+
Attachment #527173 - Flags: review?(doug.turner) → review+
please push to try before pushing to m-c (or use a project branch)
and thanks!
(In reply to comment #13) > please push to try before pushing to m-c (or use a project branch) Cool will do (once bug 648541 happens). Thanks for the review :-)
Depends on: 648541
No longer depends on: 648541
Pushed to try yesterday: http://dev.philringnalda.com/tbpl/?tree=Try&rev=84e893e5949a However for some reason hg decided that a load of changesets already in m-c needed to be included; was this just caused by the try repo not being up to date with m-c tip due to try being closed for part of yesterday? Or did I do something wrong? Also, there were 3 oranges in the results, but from what I can tell they are intermittent failures. I've used the rebuild command in the self serve API to trigger those tests again; presuming this is what I'm supposed to do in those situations? After rerunning the tests, all but one now passes - and that one has an associated bug that is perma-orange. However the bug only mentions one of the many errors for that test - ideas? Sorry for all the questions; first time using try and the try server wiki page doesn't cover much beyond how to submit tests and where to look for results. Thanks!
Also, any idea about comment 5?
Attached patch Part A - File removal (deleted) — Splinter Review
Only change: Updated to tip & r=dougt added to commit message.
Attachment #527164 - Attachment is obsolete: true
Attachment #528048 - Flags: review+
Attached patch Part B - Main ifdef removal (deleted) — Splinter Review
Only change: Updated to tip & r=dougt added to commit message.
Attachment #527169 - Attachment is obsolete: true
Attachment #528049 - Flags: review+
Only change: Updated to tip & r=dougt added to commit message.
Attachment #527171 - Attachment is obsolete: true
Attachment #528050 - Flags: review+
Only change: Updated to tip & r=dougt added to commit message.
Attachment #527173 - Attachment is obsolete: true
Attachment #528051 - Flags: review+
All four parts ready for checkin (passed try http://dev.philringnalda.com/tbpl/?tree=Try&rev=84e893e5949a and queries I had in comment 16 have been answered on IRC). r+ from dougt has been carried forwards. Note: They need to be applied in order A->D, or there will be merge conflicts. Thanks!
Keywords: checkin-needed
Summary: widget removal of unneeded wince stuff → Widget removal of unneeded WinCE stuff
Whiteboard: [please push all parts; need to be in order A->D or merge conflicts - thanks!]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [please push all parts; need to be in order A->D or merge conflicts - thanks!]
Thanks Zack, much obliged :-)
Target Milestone: --- → mozilla6
Doug, any ideas about this? Thanks :-) (In reply to comment #5) > Any idea whether SND_PURGE is still required? > > http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound. > cpp#118 > > #ifndef SND_PURGE > > // Not available on Windows CE, and according to MSDN > > // doesn't do anything on recent windows either. > > #define SND_PURGE 0 > > #endif > > It is only ever set to 0 and is only used here: > http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound. > cpp#144 > and > http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsSound. > cpp#229 > > Also, the MSDN doc here says it's not supported: > http://msdn.microsoft.com/en-us/library/dd743680%28VS.85%29.aspx
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: