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/clipboard/clipboard.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "third_party/skia/include/core/SkBitmap.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 namespace { |
| 13 const char kMimeTypeBitmap[] = "image/bmp"; |
| 14 const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste"; |
| 15 } |
| 16 |
| 17 Clipboard::Clipboard() { |
| 18 NOTIMPLEMENTED(); |
| 19 } |
| 20 |
| 21 Clipboard::~Clipboard() { |
| 22 } |
| 23 |
| 24 void Clipboard::WriteObjects(const ObjectMap& objects) { |
| 25 NOTIMPLEMENTED(); |
| 26 } |
| 27 |
| 28 |
| 29 void Clipboard::WriteObjects(const ObjectMap& objects, |
| 30 base::ProcessHandle process) { |
| 31 NOTIMPLEMENTED(); |
| 32 } |
| 33 |
| 34 void Clipboard::DidWriteURL(const std::string& utf8_text) { |
| 35 NOTIMPLEMENTED(); |
| 36 } |
| 37 |
| 38 bool Clipboard::IsFormatAvailable(const FormatType& format, |
| 39 Buffer buffer) const { |
| 40 NOTIMPLEMENTED(); |
| 41 return false; |
| 42 } |
| 43 |
| 44 bool Clipboard::IsFormatAvailableByString(const std::string& format, |
| 45 Buffer buffer) const { |
| 46 NOTIMPLEMENTED(); |
| 47 return false; |
| 48 } |
| 49 |
| 50 void Clipboard::ReadAvailableTypes(Buffer buffer, std::vector<string16>* types, |
| 51 bool* contains_filenames) const { |
| 52 NOTIMPLEMENTED(); |
| 53 } |
| 54 |
| 55 void Clipboard::ReadText(Buffer buffer, string16* result) const { |
| 56 NOTIMPLEMENTED(); |
| 57 } |
| 58 |
| 59 void Clipboard::ReadAsciiText(Buffer buffer, std::string* result) const { |
| 60 NOTIMPLEMENTED(); |
| 61 } |
| 62 |
| 63 void Clipboard::ReadHTML(Buffer buffer, string16* markup, |
| 64 std::string* src_url) const { |
| 65 NOTIMPLEMENTED(); |
| 66 } |
| 67 |
| 68 SkBitmap Clipboard::ReadImage(Buffer buffer) const { |
| 69 NOTIMPLEMENTED(); |
| 70 return SkBitmap(); |
| 71 } |
| 72 |
| 73 void Clipboard::ReadBookmark(string16* title, std::string* url) const { |
| 74 NOTIMPLEMENTED(); |
| 75 } |
| 76 |
| 77 void Clipboard::ReadFile(FilePath* file) const { |
| 78 NOTIMPLEMENTED(); |
| 79 } |
| 80 |
| 81 void Clipboard::ReadFiles(std::vector<FilePath>* files) const { |
| 82 NOTIMPLEMENTED(); |
| 83 } |
| 84 |
| 85 void Clipboard::ReadData(const std::string& format, std::string* result) { |
| 86 NOTIMPLEMENTED(); |
| 87 } |
| 88 |
| 89 uint64 Clipboard::GetSequenceNumber() { |
| 90 NOTIMPLEMENTED(); |
| 91 return 0; |
| 92 } |
| 93 |
| 94 void Clipboard::WriteText(const char* text_data, size_t text_len) { |
| 95 NOTIMPLEMENTED(); |
| 96 } |
| 97 |
| 98 void Clipboard::WriteHTML(const char* markup_data, |
| 99 size_t markup_len, |
| 100 const char* url_data, |
| 101 size_t url_len) { |
| 102 NOTIMPLEMENTED(); |
| 103 } |
| 104 |
| 105 void Clipboard::WriteBookmark(const char* title_data, |
| 106 size_t title_len, |
| 107 const char* url_data, |
| 108 size_t url_len) { |
| 109 NOTIMPLEMENTED(); |
| 110 } |
| 111 |
| 112 void Clipboard::WriteWebSmartPaste() { |
| 113 NOTIMPLEMENTED(); |
| 114 } |
| 115 |
| 116 void Clipboard::WriteBitmap(const char* pixel_data, const char* size_data) { |
| 117 NOTIMPLEMENTED(); |
| 118 } |
| 119 |
| 120 void Clipboard::WriteData(const char* format_name, size_t format_len, |
| 121 const char* data_data, size_t data_len) { |
| 122 NOTIMPLEMENTED(); |
| 123 } |
| 124 |
| 125 // static |
| 126 Clipboard::FormatType Clipboard::GetPlainTextFormatType() { |
| 127 return std::string(kMimeTypeText); |
| 128 } |
| 129 |
| 130 // static |
| 131 Clipboard::FormatType Clipboard::GetPlainTextWFormatType() { |
| 132 return GetPlainTextFormatType(); |
| 133 } |
| 134 |
| 135 // static |
| 136 Clipboard::FormatType Clipboard::GetHtmlFormatType() { |
| 137 return std::string(kMimeTypeHTML); |
| 138 } |
| 139 |
| 140 // static |
| 141 Clipboard::FormatType Clipboard::GetBitmapFormatType() { |
| 142 return std::string(kMimeTypeBitmap); |
| 143 } |
| 144 |
| 145 // static |
| 146 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { |
| 147 return std::string(kMimeTypeWebkitSmartPaste); |
| 148 } |
| 149 |
| 150 } // namespace ui |
OLD | NEW |