Title: [188939] trunk/Tools
- Revision
- 188939
- Author
- [email protected]
- Date
- 2015-08-25 17:16:02 -0700 (Tue, 25 Aug 2015)
Log Message
[Win] Expose "Inverted Colors" option in WinLauncher
https://bugs.webkit.org/show_bug.cgi?id=148451
Reviewed by Tim Horton.
Add the ability to toggle the "Inverted Colors" preference
in WinLauncher.
* WinLauncher/Common.cpp:
(ToggleMenuItem): Toggle the feature when the menu item
is selected.
(WndProc): Recognize the new menu option.
* WinLauncher/WinLauncher.cpp:
(WinLauncher::setToDefaultPreferences): Launch with "Invert
Colors" turned off.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc: Add menu
entry for "Invert Colors".
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (188938 => 188939)
--- trunk/Tools/ChangeLog 2015-08-25 23:45:12 UTC (rev 188938)
+++ trunk/Tools/ChangeLog 2015-08-26 00:16:02 UTC (rev 188939)
@@ -1,3 +1,24 @@
+2015-08-25 Brent Fulgham <[email protected]>
+
+ [Win] Expose "Inverted Colors" option in WinLauncher
+ https://bugs.webkit.org/show_bug.cgi?id=148451
+
+ Reviewed by Tim Horton.
+
+ Add the ability to toggle the "Inverted Colors" preference
+ in WinLauncher.
+
+ * WinLauncher/Common.cpp:
+ (ToggleMenuItem): Toggle the feature when the menu item
+ is selected.
+ (WndProc): Recognize the new menu option.
+ * WinLauncher/WinLauncher.cpp:
+ (WinLauncher::setToDefaultPreferences): Launch with "Invert
+ Colors" turned off.
+ * WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc: Add menu
+ entry for "Invert Colors".
+ * WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h:
+
2015-08-25 Nan Wang <[email protected]>
[Mac] accessibility/document-attributes.html fails
Modified: trunk/Tools/WinLauncher/Common.cpp (188938 => 188939)
--- trunk/Tools/WinLauncher/Common.cpp 2015-08-25 23:45:12 UTC (rev 188938)
+++ trunk/Tools/WinLauncher/Common.cpp 2015-08-26 00:16:02 UTC (rev 188939)
@@ -390,6 +390,9 @@
gWinLauncher->privatePreferences()->setShowDebugBorders(newState);
gWinLauncher->privatePreferences()->setShowRepaintCounter(newState);
break;
+ case IDM_INVERT_COLORS:
+ gWinLauncher->privatePreferences()->setShouldInvertColors(newState);
+ break;
case IDM_DISABLE_IMAGES:
gWinLauncher->standardPreferences()->setLoadsImagesAutomatically(!newState);
break;
@@ -488,6 +491,7 @@
case IDM_ACC_COMPOSITING:
case IDM_WK_FULLSCREEN:
case IDM_COMPOSITING_BORDERS:
+ case IDM_INVERT_COLORS:
case IDM_DISABLE_IMAGES:
case IDM_DISABLE_STYLES:
case IDM_DISABLE_JAVASCRIPT:
Modified: trunk/Tools/WinLauncher/WinLauncher.cpp (188938 => 188939)
--- trunk/Tools/WinLauncher/WinLauncher.cpp 2015-08-25 23:45:12 UTC (rev 188938)
+++ trunk/Tools/WinLauncher/WinLauncher.cpp 2015-08-26 00:16:02 UTC (rev 188939)
@@ -191,6 +191,7 @@
m_prefsPrivate->setFullScreenEnabled(TRUE);
m_prefsPrivate->setShowDebugBorders(FALSE);
m_prefsPrivate->setShowRepaintCounter(FALSE);
+ m_prefsPrivate->setShouldInvertColors(FALSE);
m_standardPreferences->setLoadsImagesAutomatically(TRUE);
m_prefsPrivate->setAuthorAndUserStylesEnabled(TRUE);
Modified: trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc (188938 => 188939)
--- trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc 2015-08-25 23:45:12 UTC (rev 188938)
+++ trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc 2015-08-26 00:16:02 UTC (rev 188939)
@@ -48,6 +48,7 @@
MENUITEM "Actual Size", IDM_ACTUAL_SIZE
MENUITEM "Zoom In\tCtrl++", IDM_ZOOM_IN
MENUITEM "Zoom Out\tCtrl+-", IDM_ZOOM_OUT
+ MENUITEM "Invert Colors", IDM_INVERT_COLORS
END
POPUP "&History"
BEGIN
Modified: trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h (188938 => 188939)
--- trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h 2015-08-25 23:45:12 UTC (rev 188938)
+++ trunk/Tools/WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h 2015-08-26 00:16:02 UTC (rev 188939)
@@ -22,6 +22,7 @@
#define IDM_DISABLE_STYLES 122
#define IDM_DISABLE_JAVASCRIPT 123
#define IDM_DISABLE_LOCAL_FILE_RESTRICTIONS 124
+#define IDM_INVERT_COLORS 125
#define IDR_MAINFRAME 128
#define IDD_CACHES 129
#define IDM_HISTORY_BACKWARD 130
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes