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

Unified Diff: ui/base/dragdrop/bookmark_format.cc

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :( Created 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698