Index: ui/base/dragdrop/bookmark_format.cc |
diff --git a/ui/base/dragdrop/bookmark_format.cc b/ui/base/dragdrop/bookmark_format.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e4c62f799ea7ebe33879c89f55ffc7d295df5086 |
--- /dev/null |
+++ b/ui/base/dragdrop/bookmark_format.cc |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/base/dragdrop/bookmark_format.h" |
+ |
+namespace ui { |
+ |
+const char kClipboardFormatString[] = "chromium/x-bookmark-entries"; |
+ |
+#if defined(TOOLKIT_VIEWS) |
+ui::OSExchangeData::CustomFormat GetBookmarkCustomFormat() { |
+ static ui::OSExchangeData::CustomFormat format; |
+ static bool format_valid = false; |
+ |
+ if (!format_valid) { |
+ format_valid = true; |
+ format = ui::OSExchangeData::RegisterCustomFormat(kClipboardFormatString); |
+ } |
+ return format; |
+} |
+#endif |
+ |
+} // namespace ui |