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

Side by Side Diff: mojo/services/html_viewer/web_clipboard_impl.h

Issue 1099303002: Move html_viewer from mojo/services to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef MOJO_SERVICES_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
7
8 #include "third_party/WebKit/public/platform/WebClipboard.h"
9 #include "third_party/mojo_services/src/clipboard/public/interfaces/clipboard.mo jom.h"
10
11 namespace html_viewer {
12
13 class WebClipboardImpl : public blink::WebClipboard {
14 public:
15 WebClipboardImpl(mojo::ClipboardPtr clipboard);
16 virtual ~WebClipboardImpl();
17
18 // blink::WebClipboard methods:
19 virtual uint64_t sequenceNumber(Buffer);
20 virtual bool isFormatAvailable(Format, Buffer);
21 virtual blink::WebVector<blink::WebString> readAvailableTypes(
22 Buffer buffer,
23 bool* contains_filenames);
24 virtual blink::WebString readPlainText(Buffer buffer);
25 virtual blink::WebString readHTML(Buffer buffer,
26 blink::WebURL* page_url,
27 unsigned* fragment_start,
28 unsigned* fragment_end);
29 // TODO(erg): readImage()
30 virtual blink::WebString readCustomData(Buffer buffer,
31 const blink::WebString& type);
32 virtual void writePlainText(const blink::WebString& plain_text);
33 virtual void writeHTML(const blink::WebString& html_text,
34 const blink::WebURL& source_url,
35 const blink::WebString& plain_text,
36 bool write_smart_paste);
37
38 private:
39 // Changes webkit buffers to mojo Clipboard::Types.
40 mojo::Clipboard::Type ConvertBufferType(Buffer buffer);
41
42 mojo::ClipboardPtr clipboard_;
43
44 DISALLOW_COPY_AND_ASSIGN(WebClipboardImpl);
45 };
46
47 } // namespace html_viewer
48
49 #endif // MOJO_SERVICES_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/touch_handler.cc ('k') | mojo/services/html_viewer/web_clipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698