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

Unified Diff: components/html_viewer/web_clipboard_impl.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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 | « components/html_viewer/touch_handler.cc ('k') | components/html_viewer/web_clipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_clipboard_impl.h
diff --git a/components/html_viewer/web_clipboard_impl.h b/components/html_viewer/web_clipboard_impl.h
deleted file mode 100644
index 84fbc7f91ed900429480d06a6db5678f6a2784f2..0000000000000000000000000000000000000000
--- a/components/html_viewer/web_clipboard_impl.h
+++ /dev/null
@@ -1,52 +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 COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
-#define COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "components/clipboard/public/interfaces/clipboard.mojom.h"
-#include "third_party/WebKit/public/platform/WebClipboard.h"
-
-namespace html_viewer {
-
-class WebClipboardImpl : public blink::WebClipboard {
- public:
- WebClipboardImpl(mojo::ClipboardPtr clipboard);
- virtual ~WebClipboardImpl();
-
- // blink::WebClipboard methods:
- uint64_t sequenceNumber(Buffer) override;
- bool isFormatAvailable(Format, Buffer) override;
- blink::WebVector<blink::WebString> readAvailableTypes(
- Buffer buffer,
- bool* contains_filenames) override;
- blink::WebString readPlainText(Buffer buffer) override;
- blink::WebString readHTML(Buffer buffer,
- blink::WebURL* page_url,
- unsigned* fragment_start,
- unsigned* fragment_end) override;
- // TODO(erg): readImage()
- blink::WebString readCustomData(Buffer buffer,
- const blink::WebString& type) override;
- void writePlainText(const blink::WebString& plain_text) override;
- void writeHTML(const blink::WebString& html_text,
- const blink::WebURL& source_url,
- const blink::WebString& plain_text,
- bool write_smart_paste) override;
-
- private:
- // Changes webkit buffers to mojo Clipboard::Types.
- mojo::Clipboard::Type ConvertBufferType(Buffer buffer);
-
- mojo::ClipboardPtr clipboard_;
-
- DISALLOW_COPY_AND_ASSIGN(WebClipboardImpl);
-};
-
-} // namespace html_viewer
-
-#endif // COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
« no previous file with comments | « components/html_viewer/touch_handler.cc ('k') | components/html_viewer/web_clipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698