Closed Bug 680227 Opened 13 years ago Closed 10 years ago

Add support for Wintaskbar pre Windows 7

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bbondy, Unassigned, Mentored)

References

Details

(Whiteboard: [good first bug][lang=c++])

Our current implementation of Wintaskbar requires Windows 7 to actually create the object.
This is because it supports ITaskbarList3 and ITaskbarList4 

However we use some functions from ITaskbarList which only requires Windows 2000 (ActivateTab) and ITaskbarList2 (MarkFullScreenWindow) which only requires Windows XP.

It would be good to be able to get a scaled down version of the taskbar for the code that can still benefit from it when that code is running pre Windows 7.

I think the best way to handle this would be to have 3 classes that implement nsIWintaskbar.  The Windows 2000 one will have the base code, the Windows XP one will inherit from the Windows 2000 one and add some stuff.  The Windows 7 one will inherit from the Windows XP one and add more.  All would use the same interface but the Windows 2000 and Windows XP ones would return not implemented errors for the calls that are not available.
Blocks: 617052
See Also: → 646374
See Also: → 648902
See Also: → 634586
I would waste any time on 2000 related support, unless we need that as a base class for the rest.
> I would waste any time on 2000 related support

OK will [not] do, definitely worth it for the Win XP support though especially for Bug 617052.
 
Regarding my original post...
The task is to:
1) Remove conditionals for Win7 only.
2) Add another XPIDL interface that is for XP support items
3) Have the normal nsIWinTaskbar inherit from that interface.
4) Refactor whatever code is needed to do all of this, for example make sure we have NULL checks when we request the Win7 only interface.
No longer blocks: 617052
Depends on: 617052
Assignee: netzen → nobody
Mentor: jmathies, tabraldes, netzen
Whiteboard: [good first bug][lang=c++]
i would like to would to work on this bug, can you tell me how to start
Sorry for the inconvenience, but after reading this through again I think there's no clear benefit to doing it and it could introduce regressions. Also our min version will eventually change again so it's not worth it.  So I'm going to wontfix this.  If anyone has strong objections please feel free to re-open.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.