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

Side by Side Diff: ppapi/proxy/flash_clipboard_resource.h

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_FLASH_CLIPBOARD_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_CLIPBOARD_RESOURCE_H_
7
8 #include <set>
yzshen1 2012/10/29 16:55:46 You don't need 'set' here.
raymes 2012/10/29 18:44:58 Done.
9
10 #include "ppapi/proxy/connection.h"
11 #include "ppapi/proxy/flash_clipboard_format_registry.h"
12 #include "ppapi/proxy/plugin_resource.h"
13 #include "ppapi/proxy/ppapi_proxy_export.h"
yzshen1 2012/10/29 16:55:46 I think we don't need to export it, right?
raymes 2012/10/29 18:44:58 Done.
14 #include "ppapi/thunk/ppb_flash_clipboard_api.h"
15
16 struct PP_ArrayOutput;
yzshen1 2012/10/29 16:55:46 You don't need this forward declaration.
raymes 2012/10/29 18:44:58 Done.
17
18 namespace ppapi {
19 namespace proxy {
20
21 class PPAPI_PROXY_EXPORT FlashClipboardResource
22 : public PluginResource,
23 public NON_EXPORTED_BASE(thunk::PPB_Flash_Clipboard_API) {
24 public:
25 FlashClipboardResource(Connection connection, PP_Instance instance);
26 virtual ~FlashClipboardResource();
27
28 // Resource overrides.
29 virtual thunk::PPB_Flash_Clipboard_API* AsPPB_Flash_Clipboard_API() OVERRIDE;
30
31 // PPB_Flash_Clipboard_API overrides.
yzshen1 2012/10/29 16:55:46 nit: use 'implementation' instead of 'override' he
raymes 2012/10/29 18:44:58 Done.
32 virtual uint32_t RegisterCustomFormat(PP_Instance instance,
33 const char* format_name) OVERRIDE;
34 virtual PP_Bool IsFormatAvailable(PP_Instance instance,
35 PP_Flash_Clipboard_Type clipboard_type,
36 uint32_t format) OVERRIDE;
37 virtual PP_Var ReadData(PP_Instance instance,
38 PP_Flash_Clipboard_Type clipboard_type,
39 uint32_t format) OVERRIDE;
40 virtual int32_t WriteData(PP_Instance instance,
41 PP_Flash_Clipboard_Type clipboard_type,
42 uint32_t data_item_count,
43 const uint32_t formats[],
44 const PP_Var data_items[]) OVERRIDE;
45
46 private:
47 FlashClipboardFormatRegistry clipboard_formats_;
48
49 DISALLOW_COPY_AND_ASSIGN(FlashClipboardResource);
50 };
51
52 } // namespace proxy
53 } // namespace ppapi
54
55 #endif // PPAPI_PROXY_FLASH_CLIPBOARD_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698