Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: Source/bindings/v8/custom/V8ClipboardCustom.cpp

Issue 26023003: Get rid of custom code for clipboard.clearData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/custom/V8ClipboardCustom.cpp
diff --git a/Source/bindings/v8/custom/V8ClipboardCustom.cpp b/Source/bindings/v8/custom/V8ClipboardCustom.cpp
index b2ef0430852b911a441c4f58f0075e5558aa15e5..189fe99251cc01a16d274361a386678c8b19203a 100644
--- a/Source/bindings/v8/custom/V8ClipboardCustom.cpp
+++ b/Source/bindings/v8/custom/V8ClipboardCustom.cpp
@@ -42,24 +42,6 @@
namespace WebCore {
-void V8Clipboard::clearDataMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
-{
- Clipboard* clipboard = V8Clipboard::toNative(args.Holder());
-
- if (!args.Length()) {
- clipboard->clearAllData();
- return;
- }
-
- if (args.Length() != 1) {
- throwError(v8SyntaxError, "clearData: Invalid number of arguments", args.GetIsolate());
- return;
- }
-
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]);
- clipboard->clearData(type);
-}
-
void V8Clipboard::setDragImageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
Clipboard* clipboard = V8Clipboard::toNative(args.Holder());

Powered by Google App Engine
This is Rietveld 408576698