summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 01:49:46 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 01:49:46 +0000
commitd3de0f37669957bc8bf45b9df817be533e95f3ab (patch)
treeb16b2b356bfc32d84a9df8498d6b62604746ae92 /webkit/glue
parent5083112cf116b8f32241cfb479efa0687f1b6cf4 (diff)
downloadchromium_src-d3de0f37669957bc8bf45b9df817be533e95f3ab.zip
chromium_src-d3de0f37669957bc8bf45b9df817be533e95f3ab.tar.gz
chromium_src-d3de0f37669957bc8bf45b9df817be533e95f3ab.tar.bz2
Linux: add images for disabled checkboxes and radio buttons.
(WebKit side still to land, however this side can be safely landed without it.) BUG=16170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/resources/linux-checkbox-disabled-off.pngbin0 -> 2850 bytes
-rw-r--r--webkit/glue/resources/linux-checkbox-disabled-on.pngbin0 -> 3015 bytes
-rw-r--r--webkit/glue/resources/linux-radio-disabled-off.pngbin0 -> 2910 bytes
-rw-r--r--webkit/glue/resources/linux-radio-disabled-on.pngbin0 -> 3015 bytes
-rw-r--r--webkit/glue/webkit_resources.grd4
-rw-r--r--webkit/glue/webkitclient_impl.cc4
6 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/resources/linux-checkbox-disabled-off.png b/webkit/glue/resources/linux-checkbox-disabled-off.png
new file mode 100644
index 0000000..c916674
--- /dev/null
+++ b/webkit/glue/resources/linux-checkbox-disabled-off.png
Binary files differ
diff --git a/webkit/glue/resources/linux-checkbox-disabled-on.png b/webkit/glue/resources/linux-checkbox-disabled-on.png
new file mode 100644
index 0000000..d9ff1c6
--- /dev/null
+++ b/webkit/glue/resources/linux-checkbox-disabled-on.png
Binary files differ
diff --git a/webkit/glue/resources/linux-radio-disabled-off.png b/webkit/glue/resources/linux-radio-disabled-off.png
new file mode 100644
index 0000000..97aa6f9
--- /dev/null
+++ b/webkit/glue/resources/linux-radio-disabled-off.png
Binary files differ
diff --git a/webkit/glue/resources/linux-radio-disabled-on.png b/webkit/glue/resources/linux-radio-disabled-on.png
new file mode 100644
index 0000000..07aed36
--- /dev/null
+++ b/webkit/glue/resources/linux-radio-disabled-on.png
Binary files differ
diff --git a/webkit/glue/webkit_resources.grd b/webkit/glue/webkit_resources.grd
index 18675ca..bbd40b6 100644
--- a/webkit/glue/webkit_resources.grd
+++ b/webkit/glue/webkit_resources.grd
@@ -29,8 +29,12 @@
<if expr="os == 'linux2'">
<include name="IDR_LINUX_CHECKBOX_OFF" file="resources\linux-checkbox-off.png" type="BINDATA" />
<include name="IDR_LINUX_CHECKBOX_ON" file="resources\linux-checkbox-on.png" type="BINDATA" />
+ <include name="IDR_LINUX_CHECKBOX_DISABLED_OFF" file="resources\linux-checkbox-disabled-off.png" type="BINDATA" />
+ <include name="IDR_LINUX_CHECKBOX_DISABLED_ON" file="resources\linux-checkbox-disabled-on.png" type="BINDATA" />
<include name="IDR_LINUX_RADIO_OFF" file="resources\linux-radio-off.png" type="BINDATA" />
<include name="IDR_LINUX_RADIO_ON" file="resources\linux-radio-on.png" type="BINDATA" />
+ <include name="IDR_LINUX_RADIO_DISABLED_OFF" file="resources\linux-radio-disabled-off.png" type="BINDATA" />
+ <include name="IDR_LINUX_RADIO_DISABLED_ON" file="resources\linux-radio-disabled-on.png" type="BINDATA" />
</if>
<include name="IDC_ALIAS" file="resources\aliasb.cur" type="CURSOR" />
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 91152f4..1a8a86d 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -107,8 +107,12 @@ WebData WebKitClientImpl::loadResource(const char* name) {
#if defined(OS_LINUX)
{ "linuxCheckboxOff", IDR_LINUX_CHECKBOX_OFF },
{ "linuxCheckboxOn", IDR_LINUX_CHECKBOX_ON },
+ { "linuxCheckboxDisabledOff", IDR_LINUX_CHECKBOX_DISABLED_OFF },
+ { "linuxCheckboxDisabledOn", IDR_LINUX_CHECKBOX_DISABLED_ON },
{ "linuxRadioOff", IDR_LINUX_RADIO_OFF },
{ "linuxRadioOn", IDR_LINUX_RADIO_ON },
+ { "linuxRadioDisabledOff", IDR_LINUX_RADIO_DISABLED_OFF },
+ { "linuxRadioDisabledOn", IDR_LINUX_RADIO_DISABLED_ON },
#endif
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) {