Bug 148451

Summary: [Win] Expose "Inverted Colors" option in WinLauncher
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Tools / TestsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 148461    
Attachments:
Description Flags
Patch thorton: review+

Brent Fulgham
Reported 2015-08-25 16:33:33 PDT
WebKit supports an inverted color mode for Accessibility. This option is not accessible in WinLauncher, which makes experimenting with the feature difficult. This patch adds a menu option to the "View" menu so that you can run WinLauncher with inverted colors.
Attachments
Patch (3.85 KB, patch)
2015-08-25 16:36 PDT, Brent Fulgham
thorton: review+
Brent Fulgham
Comment 1 2015-08-25 16:36:15 PDT
Said Abou-Hallawa
Comment 2 2015-08-25 17:10:38 PDT
Comment on attachment 259899 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259899&action=review > Tools/WinLauncher/Common.cpp:494 > + case IDM_INVERT_COLORS: WinProc() and ToggleMenuItem() checks for the same set of wmIds. Can't we make ToggleMenuItem() returns true if handles the wmId and false if it does not? The default case of switch (wmId) in WinProc can be like this: default: if (!ToggleMenuItem(hWnd, mId)) return CallWindowProc(parentProc, hWnd, message, wParam, lParam); }
Brent Fulgham
Comment 3 2015-08-25 17:16:13 PDT
Brent Fulgham
Comment 4 2015-08-25 19:42:59 PDT
(In reply to comment #2) > Comment on attachment 259899 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=259899&action=review > > > Tools/WinLauncher/Common.cpp:494 > > + case IDM_INVERT_COLORS: > > WinProc() and ToggleMenuItem() checks for the same set of wmIds. Can't we > make ToggleMenuItem() returns true if handles the wmId and false if it does > not? The default case of switch (wmId) in WinProc can be like this: > > default: > if (!ToggleMenuItem(hWnd, mId)) > return CallWindowProc(parentProc, hWnd, message, wParam, > lParam); > } That's a great idea! I'll try to put a patch together for that. Thanks!
Note You need to log in before you can comment on or make changes to this bug.