OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/base/dragdrop/bookmark_format.h" |
| 6 |
| 7 namespace ui { |
| 8 |
| 9 const char kClipboardFormatString[] = "chromium/x-bookmark-entries"; |
| 10 |
| 11 #if defined(TOOLKIT_VIEWS) |
| 12 ui::OSExchangeData::CustomFormat GetBookmarkCustomFormat() { |
| 13 static ui::OSExchangeData::CustomFormat format; |
| 14 static bool format_valid = false; |
| 15 |
| 16 if (!format_valid) { |
| 17 format_valid = true; |
| 18 format = ui::OSExchangeData::RegisterCustomFormat(kClipboardFormatString); |
| 19 } |
| 20 return format; |
| 21 } |
| 22 #endif |
| 23 |
| 24 } // namespace ui |
OLD | NEW |