Index: ui/base/clipboard/clipboard_aura.cc |
diff --git a/ui/base/clipboard/clipboard_aura.cc b/ui/base/clipboard/clipboard_aura.cc |
deleted file mode 100644 |
index 21c120228c7bad24810243d3fbd6e8dd27bfd1a2..0000000000000000000000000000000000000000 |
--- a/ui/base/clipboard/clipboard_aura.cc |
+++ /dev/null |
@@ -1,181 +0,0 @@ |
-// 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/clipboard/clipboard.h" |
- |
-#include "base/logging.h" |
-#include "base/utf_string_conversions.h" |
-#include "third_party/skia/include/core/SkBitmap.h" |
- |
-namespace ui { |
- |
-namespace { |
-const char kMimeTypeBitmap[] = "image/bmp"; |
-const char kMimeTypeWebkitSmartPaste[] = "chromium/x-webkit-paste"; |
- |
-// A mimimum clipboard implementation for simple text cut&paste. |
-class ClipboardData { |
- public: |
- ClipboardData() {} |
- virtual ~ClipboardData() {} |
- |
- const std::string& text() const { return utf8_text_; } |
- |
- void set_text(const std::string& text) { |
- utf8_text_ = text; |
- } |
- |
- private: |
- std::string utf8_text_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ClipboardData); |
-}; |
- |
-ClipboardData* data = NULL; |
- |
-ClipboardData* GetClipboardData() { |
- if (!data) |
- data = new ClipboardData(); |
- return data; |
-} |
- |
-} // namespace |
- |
-Clipboard::Clipboard() { |
- NOTIMPLEMENTED(); |
-} |
- |
-Clipboard::~Clipboard() { |
-} |
- |
-void Clipboard::WriteObjects(const ObjectMap& objects) { |
- for (ObjectMap::const_iterator iter = objects.begin(); |
- iter != objects.end(); ++iter) { |
- DispatchObject(static_cast<ObjectType>(iter->first), iter->second); |
- } |
-} |
- |
- |
-void Clipboard::WriteObjects(const ObjectMap& objects, |
- base::ProcessHandle process) { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::DidWriteURL(const std::string& utf8_text) { |
- NOTIMPLEMENTED(); |
-} |
- |
-bool Clipboard::IsFormatAvailable(const FormatType& format, |
- Buffer buffer) const { |
- NOTIMPLEMENTED(); |
- return false; |
-} |
- |
-bool Clipboard::IsFormatAvailableByString(const std::string& format, |
- Buffer buffer) const { |
- NOTIMPLEMENTED(); |
- return false; |
-} |
- |
-void Clipboard::ReadAvailableTypes(Buffer buffer, std::vector<string16>* types, |
- bool* contains_filenames) const { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::ReadText(Buffer buffer, string16* result) const { |
- *result = UTF8ToUTF16(GetClipboardData()->text()); |
-} |
- |
-void Clipboard::ReadAsciiText(Buffer buffer, std::string* result) const { |
- *result = GetClipboardData()->text(); |
-} |
- |
-void Clipboard::ReadHTML(Buffer buffer, string16* markup, std::string* src_url, |
- uint32* fragment_start, uint32* fragment_end) const { |
- NOTIMPLEMENTED(); |
-} |
- |
-SkBitmap Clipboard::ReadImage(Buffer buffer) const { |
- NOTIMPLEMENTED(); |
- return SkBitmap(); |
-} |
- |
-void Clipboard::ReadBookmark(string16* title, std::string* url) const { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::ReadFile(FilePath* file) const { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::ReadFiles(std::vector<FilePath>* files) const { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::ReadData(const std::string& format, std::string* result) { |
- NOTIMPLEMENTED(); |
-} |
- |
-uint64 Clipboard::GetSequenceNumber() { |
- NOTIMPLEMENTED(); |
- return 0; |
-} |
- |
-void Clipboard::WriteText(const char* text_data, size_t text_len) { |
- GetClipboardData()->set_text(std::string(text_data, text_len)); |
-} |
- |
-void Clipboard::WriteHTML(const char* markup_data, |
- size_t markup_len, |
- const char* url_data, |
- size_t url_len) { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::WriteBookmark(const char* title_data, |
- size_t title_len, |
- const char* url_data, |
- size_t url_len) { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::WriteWebSmartPaste() { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::WriteBitmap(const char* pixel_data, const char* size_data) { |
- NOTIMPLEMENTED(); |
-} |
- |
-void Clipboard::WriteData(const char* format_name, size_t format_len, |
- const char* data_data, size_t data_len) { |
- NOTIMPLEMENTED(); |
-} |
- |
-// static |
-Clipboard::FormatType Clipboard::GetPlainTextFormatType() { |
- return std::string(kMimeTypeText); |
-} |
- |
-// static |
-Clipboard::FormatType Clipboard::GetPlainTextWFormatType() { |
- return GetPlainTextFormatType(); |
-} |
- |
-// static |
-Clipboard::FormatType Clipboard::GetHtmlFormatType() { |
- return std::string(kMimeTypeHTML); |
-} |
- |
-// static |
-Clipboard::FormatType Clipboard::GetBitmapFormatType() { |
- return std::string(kMimeTypeBitmap); |
-} |
- |
-// static |
-Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { |
- return std::string(kMimeTypeWebkitSmartPaste); |
-} |
- |
-} // namespace ui |