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

Side by Side Diff: ppapi/thunk/ppb_flash_clipboard_api.h

Issue 11359063: Refactor the way singleton-style resources are exposed via PPB_Instance (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
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 PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_
6 #define PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_ 6 #define PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_
7 7
8 #include "ppapi/shared_impl/api_id.h"
8 #include "ppapi/c/private/ppb_flash_clipboard.h" 9 #include "ppapi/c/private/ppb_flash_clipboard.h"
9 10
10 namespace ppapi { 11 namespace ppapi {
11 namespace thunk { 12 namespace thunk {
12 13
13 class PPB_Flash_Clipboard_API { 14 class PPB_Flash_Clipboard_API {
14 public: 15 public:
15 virtual ~PPB_Flash_Clipboard_API() {} 16 virtual ~PPB_Flash_Clipboard_API() {}
16 17
17 // PPB_Flash_Clipboard. 18 // PPB_Flash_Clipboard.
18 virtual uint32_t RegisterCustomFormat( 19 virtual uint32_t RegisterCustomFormat(
19 PP_Instance instance, 20 PP_Instance instance,
20 const char* format_name) = 0; 21 const char* format_name) = 0;
21 virtual PP_Bool IsFormatAvailable( 22 virtual PP_Bool IsFormatAvailable(
22 PP_Instance instance, 23 PP_Instance instance,
23 PP_Flash_Clipboard_Type clipboard_type, 24 PP_Flash_Clipboard_Type clipboard_type,
24 uint32_t format) = 0; 25 uint32_t format) = 0;
25 virtual PP_Var ReadData( 26 virtual PP_Var ReadData(
26 PP_Instance instance, 27 PP_Instance instance,
27 PP_Flash_Clipboard_Type clipboard_type, 28 PP_Flash_Clipboard_Type clipboard_type,
28 uint32_t format) = 0; 29 uint32_t format) = 0;
29 virtual int32_t WriteData( 30 virtual int32_t WriteData(
30 PP_Instance instance, 31 PP_Instance instance,
31 PP_Flash_Clipboard_Type clipboard_type, 32 PP_Flash_Clipboard_Type clipboard_type,
32 uint32_t data_item_count, 33 uint32_t data_item_count,
33 const uint32_t formats[], 34 const uint32_t formats[],
34 const PP_Var data_items[]) = 0; 35 const PP_Var data_items[]) = 0;
36
37 static const SingletonResourceID kSingletonResourceID =
38 FLASH_CLIPBOARD_SINGLETON_ID;
35 }; 39 };
36 40
37 } // namespace thunk 41 } // namespace thunk
38 } // namespace ppapi 42 } // namespace ppapi
39 43
40 #endif // PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_ 44 #endif // PPAPI_THUNK_PPB_FLASH_CLIPBOARD_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698