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

Unified Diff: mojo/services/html_viewer/webclipboard_impl.h

Issue 579503003: Revert of mojo: Create a basic clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.cc ('k') | mojo/services/html_viewer/webclipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/webclipboard_impl.h
diff --git a/mojo/services/html_viewer/webclipboard_impl.h b/mojo/services/html_viewer/webclipboard_impl.h
deleted file mode 100644
index 0c307c5d66970673490090b846ea8e3ea14e63e9..0000000000000000000000000000000000000000
--- a/mojo/services/html_viewer/webclipboard_impl.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef MOJO_SERVICES_HTML_VIEWER_WEBCLIPBOARD_IMPL_H_
-#define MOJO_SERVICES_HTML_VIEWER_WEBCLIPBOARD_IMPL_H_
-
-#include "mojo/services/public/interfaces/clipboard/clipboard.mojom.h"
-#include "third_party/WebKit/public/platform/WebClipboard.h"
-
-namespace mojo {
-
-class WebClipboardImpl : public blink::WebClipboard {
- public:
- WebClipboardImpl(ClipboardPtr clipboard);
- virtual ~WebClipboardImpl();
-
- // blink::WebClipboard methods:
- virtual uint64_t sequenceNumber(Buffer);
- virtual bool isFormatAvailable(Format, Buffer);
- virtual blink::WebVector<blink::WebString> readAvailableTypes(
- Buffer,
- bool* containsFilenames);
- virtual blink::WebString readPlainText(Buffer);
- virtual blink::WebString readHTML(Buffer buffer,
- blink::WebURL* pageURL,
- unsigned* fragmentStart,
- unsigned* fragmentEnd);
- // TODO(erg): readImage()
- virtual blink::WebString readCustomData(Buffer, const blink::WebString& type);
- virtual void writePlainText(const blink::WebString&);
- virtual void writeHTML(const blink::WebString& htmlText,
- const blink::WebURL&,
- const blink::WebString& plainText,
- bool writeSmartPaste);
-
- private:
- // Changes webkit buffers to mojo Clipboard::Types.
- mojo::Clipboard::Type ConvertBufferType(Buffer buffer);
-
- ClipboardPtr clipboard_;
-
- DISALLOW_COPY_AND_ASSIGN(WebClipboardImpl);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_HTML_VIEWER_WEBCLIPBOARD_IMPL_H_
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.cc ('k') | mojo/services/html_viewer/webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698