summaryrefslogtreecommitdiffstats
path: root/webkit/support
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/support')
-rw-r--r--webkit/support/platform_support_mac.mm24
-rw-r--r--webkit/support/platform_support_win.cc22
2 files changed, 5 insertions, 41 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm
index 54319da..ef568bd 100644
--- a/webkit/support/platform_support_mac.mm
+++ b/webkit/support/platform_support_mac.mm
@@ -216,28 +216,10 @@ base::StringPiece 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:
- case IDR_MEDIA_PAUSE_BUTTON:
- case IDR_MEDIA_PLAY_BUTTON:
- case IDR_MEDIA_PLAY_BUTTON_DISABLED:
- case IDR_MEDIA_SOUND_FULL_BUTTON:
- case IDR_MEDIA_SOUND_NONE_BUTTON:
- case IDR_MEDIA_SOUND_DISABLED:
- case IDR_MEDIA_SLIDER_THUMB:
- case IDR_MEDIA_VOLUME_SLIDER_THUMB: {
- base::StringPiece res;
- g_resource_data_pack->GetStringPiece(resource_id, &res);
- return res;
- }
-
- default:
- break;
}
- return base::StringPiece();
+ base::StringPiece res;
+ g_resource_data_pack->GetStringPiece(resource_id, &res);
+ return res;
}
} // namespace webkit_glue
diff --git a/webkit/support/platform_support_win.cc b/webkit/support/platform_support_win.cc
index c73d134..687ef0e 100644
--- a/webkit/support/platform_support_win.cc
+++ b/webkit/support/platform_support_win.cc
@@ -35,7 +35,7 @@ base::StringPiece GetRawDataResource(HMODULE module, int resource_id) {
: base::StringPiece();
}
-base::StringPiece NetResourceProvider(int key) {
+base::StringPiece ResourceProvider(int key) {
return GetRawDataResource(::GetModuleHandle(NULL), key);
}
@@ -99,27 +99,9 @@ base::StringPiece 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:
- case IDR_MEDIA_PAUSE_BUTTON:
- case IDR_MEDIA_PLAY_BUTTON:
- case IDR_MEDIA_PLAY_BUTTON_DISABLED:
- case IDR_MEDIA_SOUND_FULL_BUTTON:
- case IDR_MEDIA_SOUND_NONE_BUTTON:
- case IDR_MEDIA_SOUND_DISABLED:
- case IDR_MEDIA_SLIDER_THUMB:
- case IDR_MEDIA_VOLUME_SLIDER_THUMB:
- case IDR_DEVTOOLS_DEBUGGER_SCRIPT_JS:
- return NetResourceProvider(resource_id);
-
- default:
- break;
}
- return base::StringPiece();
+ return ResourceProvider(resource_id);
}
} // namespace webkit_glue