Chromium Code Reviews| Index: content/renderer/renderer_clipboard_client.h |
| diff --git a/content/renderer/renderer_clipboard_client.h b/content/renderer/renderer_clipboard_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a1f789bd5dfd20d6829c7c0e3954cd8283c602a |
| --- /dev/null |
| +++ b/content/renderer/renderer_clipboard_client.h |
| @@ -0,0 +1,33 @@ |
| +// 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. |
| + |
| +#ifndef CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
| +#define CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
| + |
| +#include "webkit/glue/clipboard_client.h" |
| + |
| +// An implementation of ClipboardClient that gets and sends data over IPC. |
| +class RendererClipboardClient: public webkit_glue::ClipboardClient { |
| + public: |
| + RendererClipboardClient(); |
| + virtual ~RendererClipboardClient(); |
| + |
| + virtual ui::Clipboard* GetClipboard(); |
| + virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer); |
| + virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, |
| + ui::Clipboard::Buffer buffer); |
| + virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer, |
| + std::vector<string16>* types, |
| + bool* contains_filenames); |
| + virtual void ReadText(ui::Clipboard::Buffer buffer, string16* result); |
| + virtual void ReadAsciiText(ui::Clipboard::Buffer buffer, |
| + std::string* result); |
| + virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, |
| + GURL* url, uint32* fragment_start, |
| + uint32* fragment_end); |
| + virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data); |
| + virtual WriteContext* CreateWriteContext(); |
| +}; |
| + |
| +#endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
|
sky
2011/11/21 15:13:17
nit: two spaces after endif.
piman
2011/11/21 20:27:14
Done.
|