From 75419b624210ad3863be5897000cbb6e7235505b Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Fri, 27 Feb 2009 02:00:49 +0000 Subject: Linux: first part of removing GTK from the renderer This patch adds the resources which the WebKit changes need. This shouldn't change anything. Review URL: http://codereview.chromium.org/27255 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10567 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/chrome_resources.scons | 1 + webkit/glue/chromium_bridge_impl.cc | 8 ++++++++ webkit/glue/resources/linux-checkbox-off.png | Bin 0 -> 3024 bytes webkit/glue/resources/linux-checkbox-on.png | Bin 0 -> 3165 bytes webkit/glue/resources/linux-radio-off.png | Bin 0 -> 3133 bytes webkit/glue/resources/linux-radio-on.png | Bin 0 -> 3148 bytes webkit/glue/webkit_resources.grd | 8 +++++++- 7 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 webkit/glue/resources/linux-checkbox-off.png create mode 100644 webkit/glue/resources/linux-checkbox-on.png create mode 100644 webkit/glue/resources/linux-radio-off.png create mode 100644 webkit/glue/resources/linux-radio-on.png diff --git a/chrome/app/chrome_resources.scons b/chrome/app/chrome_resources.scons index fdb8436..0646487 100644 --- a/chrome/app/chrome_resources.scons +++ b/chrome/app/chrome_resources.scons @@ -28,6 +28,7 @@ if env.Bit('linux'): '$TARGET_ROOT/grit_derived_sources/debugger_resources.pak', '$TARGET_ROOT/grit_derived_sources/common_resources.pak', '$TARGET_ROOT/grit_derived_sources/renderer_resources.pak', + '$TARGET_ROOT/grit_derived_sources/webkit_resources.pak', ] ) i = env.Install('$DESTINATION_ROOT', chrome_pak) diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc index 4fb80c4..8c701a4 100644 --- a/webkit/glue/chromium_bridge_impl.cc +++ b/webkit/glue/chromium_bridge_impl.cc @@ -222,6 +222,14 @@ PassRefPtr ChromiumBridge::loadPlatformImageResource(const char* name) { resource_id = IDR_TICKMARK_DASH; } else if (!strcmp(name, "panIcon")) { resource_id = IDR_PAN_SCROLL_ICON; + } else if (!strcmp(name, "linuxCheckboxOff")) { + resource_id = IDR_LINUX_CHECKBOX_OFF; + } else if (!strcmp(name, "linuxCheckboxOn")) { + resource_id = IDR_LINUX_CHECKBOX_ON; + } else if (!strcmp(name, "linuxRadioOff")) { + resource_id = IDR_LINUX_RADIO_OFF; + } else if (!strcmp(name, "linuxRadioOn")) { + resource_id = IDR_LINUX_RADIO_ON; } else if (!strcmp(name, "deleteButton")) { if (webkit_glue::IsLayoutTestMode()) { RefPtr image = BitmapImage::create(); diff --git a/webkit/glue/resources/linux-checkbox-off.png b/webkit/glue/resources/linux-checkbox-off.png new file mode 100644 index 0000000..15cc949 Binary files /dev/null and b/webkit/glue/resources/linux-checkbox-off.png differ diff --git a/webkit/glue/resources/linux-checkbox-on.png b/webkit/glue/resources/linux-checkbox-on.png new file mode 100644 index 0000000..4c72e8a Binary files /dev/null and b/webkit/glue/resources/linux-checkbox-on.png differ diff --git a/webkit/glue/resources/linux-radio-off.png b/webkit/glue/resources/linux-radio-off.png new file mode 100644 index 0000000..6a60a70 Binary files /dev/null and b/webkit/glue/resources/linux-radio-off.png differ diff --git a/webkit/glue/resources/linux-radio-on.png b/webkit/glue/resources/linux-radio-on.png new file mode 100644 index 0000000..cb47411 Binary files /dev/null and b/webkit/glue/resources/linux-radio-on.png differ diff --git a/webkit/glue/webkit_resources.grd b/webkit/glue/webkit_resources.grd index 2970b70..b3acd7f 100644 --- a/webkit/glue/webkit_resources.grd +++ b/webkit/glue/webkit_resources.grd @@ -14,6 +14,12 @@ + + + + + + @@ -34,4 +40,4 @@ - \ No newline at end of file + -- cgit v1.1