summaryrefslogtreecommitdiffstats
path: root/content/public/common
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 21:35:25 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 21:35:25 +0000
commit932c43a5aec158b6bbd8ad57b4a3c5fd1d584cce (patch)
treebc7761398291ff85538e5973b99ce444811ea772 /content/public/common
parentc77684ffa9516e7f44e458fa61aa4e1f5ab17d47 (diff)
downloadchromium_src-932c43a5aec158b6bbd8ad57b4a3c5fd1d584cce.zip
chromium_src-932c43a5aec158b6bbd8ad57b4a3c5fd1d584cce.tar.gz
chromium_src-932c43a5aec158b6bbd8ad57b4a3c5fd1d584cce.tar.bz2
Add a switch to invert web contents (non-accel only).
The switch will just be used during development of this feature. The idea is for this to be turned automatically for Windows users who enable an inverted (white-on-black) color scheme - see bug for detail. This first patch only handles the non-accelerated graphics path; a subsequent change will handle the accelerated path. BUG=112944 TEST=manually test with --invert-web-contents switch Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120928 Review URL: http://codereview.chromium.org/9353012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/common')
-rw-r--r--content/public/common/content_switches.cc4
-rw-r--r--content/public/common/content_switches.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 6baf3c7..0bec7fa 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -373,6 +373,10 @@ const char kInProcessPlugins[] = "in-process-plugins";
// Runs WebGL inside the renderer process.
const char kInProcessWebGL[] = "in-process-webgl";
+// Invert web content pixels, for users who prefer white-on-black.
+// (Temporary, just during development and testing of this feature.)
+const char kInvertWebContent[] = "invert-web-content";
+
// Specifies the flags passed to JS engine
const char kJavaScriptFlags[] = "js-flags";
diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h
index 6802555..f271ebd 100644
--- a/content/public/common/content_switches.h
+++ b/content/public/common/content_switches.h
@@ -117,6 +117,7 @@ CONTENT_EXPORT extern const char kIgnoreGpuBlacklist[];
extern const char kInProcessGPU[];
extern const char kInProcessPlugins[];
CONTENT_EXPORT extern const char kInProcessWebGL[];
+CONTENT_EXPORT extern const char kInvertWebContent[];
CONTENT_EXPORT extern const char kJavaScriptFlags[];
extern const char kLoadPlugin[];
CONTENT_EXPORT extern const char kLoggingLevel[];