OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
6 #define CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ | 6 #define CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
7 | 7 |
8 #include <string> | |
dcheng
2012/10/29 20:26:29
How come we need this #include? Shouldn't it be in
raymes
2012/10/29 23:30:00
Done.
| |
9 | |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "webkit/glue/clipboard_client.h" | 11 #include "webkit/glue/clipboard_client.h" |
10 | 12 |
11 namespace content { | 13 namespace content { |
12 | 14 |
13 // An implementation of ClipboardClient that gets and sends data over IPC. | 15 // An implementation of ClipboardClient that gets and sends data over IPC. |
14 class RendererClipboardClient : public webkit_glue::ClipboardClient { | 16 class RendererClipboardClient : public webkit_glue::ClipboardClient { |
15 public: | 17 public: |
16 RendererClipboardClient(); | 18 RendererClipboardClient(); |
17 virtual ~RendererClipboardClient(); | 19 virtual ~RendererClipboardClient(); |
(...skipping 13 matching lines...) Expand all Loading... | |
31 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, | 33 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, |
32 GURL* url, uint32* fragment_start, | 34 GURL* url, uint32* fragment_start, |
33 uint32* fragment_end) OVERRIDE; | 35 uint32* fragment_end) OVERRIDE; |
34 virtual void ReadRTF(ui::Clipboard::Buffer buffer, | 36 virtual void ReadRTF(ui::Clipboard::Buffer buffer, |
35 std::string* result) OVERRIDE; | 37 std::string* result) OVERRIDE; |
36 virtual void ReadImage(ui::Clipboard::Buffer buffer, | 38 virtual void ReadImage(ui::Clipboard::Buffer buffer, |
37 std::string* data) OVERRIDE; | 39 std::string* data) OVERRIDE; |
38 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, | 40 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, |
39 const string16& type, | 41 const string16& type, |
40 string16* data) OVERRIDE; | 42 string16* data) OVERRIDE; |
43 virtual void ReadData(const ui::Clipboard::FormatType& format, | |
44 std::string* data) OVERRIDE; | |
41 virtual WriteContext* CreateWriteContext() OVERRIDE; | 45 virtual WriteContext* CreateWriteContext() OVERRIDE; |
42 }; | 46 }; |
43 | 47 |
44 } // namespace content | 48 } // namespace content |
45 | 49 |
46 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ | 50 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ |
OLD | NEW |