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

Side by Side Diff: content/renderer/renderer_clipboard_client.h

Issue 8591030: Move clipboard-related webkit_glue embedder functions into a ClipboardClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/renderer_clipboard_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_
6 #define CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_
7
8 #include "webkit/glue/clipboard_client.h"
9
10 // An implementation of ClipboardClient that gets and sends data over IPC.
11 class RendererClipboardClient : public webkit_glue::ClipboardClient {
12 public:
13 RendererClipboardClient();
14 virtual ~RendererClipboardClient();
15
16 virtual ui::Clipboard* GetClipboard();
17 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer);
18 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
19 ui::Clipboard::Buffer buffer);
20 virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer,
21 std::vector<string16>* types,
22 bool* contains_filenames);
23 virtual void ReadText(ui::Clipboard::Buffer buffer, string16* result);
24 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer,
25 std::string* result);
26 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
27 GURL* url, uint32* fragment_start,
28 uint32* fragment_end);
29 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data);
30 virtual WriteContext* CreateWriteContext();
31 };
32
33 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/renderer_clipboard_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698