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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | Annotate | Revision Log
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 "webkit/glue/clipboard_client.h" 9 #include "webkit/glue/clipboard_client.h"
10 10
11 namespace content {
12
11 // An implementation of ClipboardClient that gets and sends data over IPC. 13 // An implementation of ClipboardClient that gets and sends data over IPC.
12 class RendererClipboardClient : public webkit_glue::ClipboardClient { 14 class RendererClipboardClient : public webkit_glue::ClipboardClient {
13 public: 15 public:
14 RendererClipboardClient(); 16 RendererClipboardClient();
15 virtual ~RendererClipboardClient(); 17 virtual ~RendererClipboardClient();
16 18
17 virtual ui::Clipboard* GetClipboard() OVERRIDE; 19 virtual ui::Clipboard* GetClipboard() OVERRIDE;
18 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer) OVERRIDE; 20 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer) OVERRIDE;
19 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, 21 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
20 ui::Clipboard::Buffer buffer) OVERRIDE; 22 ui::Clipboard::Buffer buffer) OVERRIDE;
(...skipping 11 matching lines...) Expand all
32 virtual void ReadRTF(ui::Clipboard::Buffer buffer, 34 virtual void ReadRTF(ui::Clipboard::Buffer buffer,
33 std::string* result) OVERRIDE; 35 std::string* result) OVERRIDE;
34 virtual void ReadImage(ui::Clipboard::Buffer buffer, 36 virtual void ReadImage(ui::Clipboard::Buffer buffer,
35 std::string* data) OVERRIDE; 37 std::string* data) OVERRIDE;
36 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, 38 virtual void ReadCustomData(ui::Clipboard::Buffer buffer,
37 const string16& type, 39 const string16& type,
38 string16* data) OVERRIDE; 40 string16* data) OVERRIDE;
39 virtual WriteContext* CreateWriteContext() OVERRIDE; 41 virtual WriteContext* CreateWriteContext() OVERRIDE;
40 }; 42 };
41 43
44 } // namespace content
45
42 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_ 46 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_accessibility_complete.h ('k') | content/renderer/renderer_clipboard_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698