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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/renderer/render_widget.cc ('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
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/renderer/clipboard_client.h" 9 #include "content/renderer/clipboard_client.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // An implementation of ClipboardClient that gets and sends data over IPC. 13 // An implementation of ClipboardClient that gets and sends data over IPC.
14 class RendererClipboardClient : public ClipboardClient { 14 class RendererClipboardClient : public ClipboardClient {
15 public: 15 public:
16 RendererClipboardClient(); 16 RendererClipboardClient();
17 virtual ~RendererClipboardClient(); 17 virtual ~RendererClipboardClient();
18 18
19 virtual ui::Clipboard* GetClipboard() OVERRIDE; 19 virtual ui::Clipboard* GetClipboard() OVERRIDE;
20 virtual uint64 GetSequenceNumber(ui::ClipboardType type) OVERRIDE; 20 virtual uint64 GetSequenceNumber(ui::ClipboardType type) OVERRIDE;
21 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, 21 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
22 ui::ClipboardType type) OVERRIDE; 22 ui::ClipboardType type) OVERRIDE;
23 virtual void Clear(ui::ClipboardType type) OVERRIDE; 23 virtual void Clear(ui::ClipboardType type) OVERRIDE;
24 virtual void ReadAvailableTypes(ui::ClipboardType type, 24 virtual void ReadAvailableTypes(ui::ClipboardType type,
25 std::vector<string16>* types, 25 std::vector<base::string16>* types,
26 bool* contains_filenames) OVERRIDE; 26 bool* contains_filenames) OVERRIDE;
27 virtual void ReadText(ui::ClipboardType type, 27 virtual void ReadText(ui::ClipboardType type,
28 string16* result) OVERRIDE; 28 base::string16* result) OVERRIDE;
29 virtual void ReadAsciiText(ui::ClipboardType type, 29 virtual void ReadAsciiText(ui::ClipboardType type,
30 std::string* result) OVERRIDE; 30 std::string* result) OVERRIDE;
31 virtual void ReadHTML(ui::ClipboardType type, 31 virtual void ReadHTML(ui::ClipboardType type,
32 string16* markup, 32 base::string16* markup,
33 GURL* url, 33 GURL* url,
34 uint32* fragment_start, 34 uint32* fragment_start,
35 uint32* fragment_end) OVERRIDE; 35 uint32* fragment_end) OVERRIDE;
36 virtual void ReadRTF(ui::ClipboardType type, std::string* result) OVERRIDE; 36 virtual void ReadRTF(ui::ClipboardType type, std::string* result) OVERRIDE;
37 virtual void ReadImage(ui::ClipboardType type, std::string* data) OVERRIDE; 37 virtual void ReadImage(ui::ClipboardType type, std::string* data) OVERRIDE;
38 virtual void ReadCustomData(ui::ClipboardType clipboard_type, 38 virtual void ReadCustomData(ui::ClipboardType clipboard_type,
39 const string16& type, 39 const base::string16& type,
40 string16* data) OVERRIDE; 40 base::string16* data) OVERRIDE;
41 virtual void ReadData(const ui::Clipboard::FormatType& format, 41 virtual void ReadData(const ui::Clipboard::FormatType& format,
42 std::string* data) OVERRIDE; 42 std::string* data) OVERRIDE;
43 virtual WriteContext* CreateWriteContext() OVERRIDE; 43 virtual WriteContext* CreateWriteContext() OVERRIDE;
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ 48 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/renderer/renderer_clipboard_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698