summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-27 17:59:13 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-27 17:59:13 +0000
commit0a6ead2b5ced309e4dccc927de06a4bd7e7a190d (patch)
tree2f8b20f309d6df2cd8424984bef0e6bac01198a3 /webkit/tools/test_shell
parent59a41bffcc68966a50d92f6dd251de36522406dc (diff)
downloadchromium_src-0a6ead2b5ced309e4dccc927de06a4bd7e7a190d.zip
chromium_src-0a6ead2b5ced309e4dccc927de06a4bd7e7a190d.tar.gz
chromium_src-0a6ead2b5ced309e4dccc927de06a4bd7e7a190d.tar.bz2
Support the IDR_SEARCH_xxx images in test_shell. Untested outside of Windows. Not going to work on mac since NetResourceProvider() is NOTIMPLEMENTED().
BUG=9210 Review URL: http://codereview.chromium.org/56012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/test_shell_gtk.cc9
-rw-r--r--webkit/tools/test_shell/test_shell_mac.mm6
-rw-r--r--webkit/tools/test_shell/test_shell_win.cc6
3 files changed, 18 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index cc5f5d2..3aecac0 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -666,12 +666,15 @@ std::string GetDataResource(int resource_id) {
case IDR_TEXTAREA_RESIZER:
resource_id = IDR_TEXTAREA_RESIZER_TESTSHELL;
break;
+ case IDR_SEARCH_CANCEL:
+ case IDR_SEARCH_CANCEL_PRESSED:
+ case IDR_SEARCH_MAGNIFIER:
+ case IDR_SEARCH_MAGNIFIER_RESULTS:
+ break;
default:
NOTREACHED();
}
- StringPiece res;
- g_resource_data_pack->Get(resource_id, &res);
- return res.as_string();
+ return NetResourceProvider(resource_id).as_string();
}
bool GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) {
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm
index 5df878e..abf82fd 100644
--- a/webkit/tools/test_shell/test_shell_mac.mm
+++ b/webkit/tools/test_shell/test_shell_mac.mm
@@ -689,6 +689,12 @@ std::string GetDataResource(int resource_id) {
return resize_corner_data;
}
+ case IDR_SEARCH_CANCEL:
+ case IDR_SEARCH_CANCEL_PRESSED:
+ case IDR_SEARCH_MAGNIFIER:
+ case IDR_SEARCH_MAGNIFIER_RESULTS:
+ return NetResourceProvider(resource_id).as_string();
+
default:
break;
}
diff --git a/webkit/tools/test_shell/test_shell_win.cc b/webkit/tools/test_shell/test_shell_win.cc
index c1d3ff1..fdd2fe9 100644
--- a/webkit/tools/test_shell/test_shell_win.cc
+++ b/webkit/tools/test_shell/test_shell_win.cc
@@ -734,6 +734,12 @@ std::string GetDataResource(int resource_id) {
return resize_corner_data;
}
+ case IDR_SEARCH_CANCEL:
+ case IDR_SEARCH_CANCEL_PRESSED:
+ case IDR_SEARCH_MAGNIFIER:
+ case IDR_SEARCH_MAGNIFIER_RESULTS:
+ return NetResourceProvider(resource_id).as_string();
+
default:
break;
}