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

Side by Side Diff: ppapi/proxy/interface_list.cc

Issue 9212066: Modified the flash cipboard interface to add html clipboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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 #include "ppapi/proxy/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_buffer_dev.h" 9 #include "ppapi/c/dev/ppb_buffer_dev.h"
10 #include "ppapi/c/dev/ppb_char_set_dev.h" 10 #include "ppapi/c/dev/ppb_char_set_dev.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 void InterfaceList::AddFlashInterfaces() { 263 void InterfaceList::AddFlashInterfaces() {
264 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); 264 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>);
265 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, 265 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH,
266 PPB_Flash_Proxy::GetInterface11()); 266 PPB_Flash_Proxy::GetInterface11());
267 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, 267 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH,
268 PPB_Flash_Proxy::GetInterface12_0()); 268 PPB_Flash_Proxy::GetInterface12_0());
269 269
270 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, 270 AddProxy(API_ID_PPB_FLASH_CLIPBOARD,
271 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); 271 &ProxyFactory<PPB_Flash_Clipboard_Proxy>);
272 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_4_0, API_ID_PPB_FLASH_CLIPBOARD,
273 thunk::GetPPB_Flash_Clipboard_4_0_Thunk());
272 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, 274 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD,
273 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); 275 thunk::GetPPB_Flash_Clipboard_3_0_Thunk());
274 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, 276 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD,
275 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); 277 thunk::GetPPB_Flash_Clipboard_3_0_Thunk());
276 278
277 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, 279 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF,
278 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); 280 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>);
279 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, 281 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF,
280 PPB_Flash_File_FileRef_Proxy::GetInterface()); 282 PPB_Flash_File_FileRef_Proxy::GetInterface());
281 283
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 AddPPB(info->name, info->id, info->interface_ptr); 343 AddPPB(info->name, info->id, info->interface_ptr);
342 } 344 }
343 345
344 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 346 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
345 AddProxy(info->id, info->create_proxy); 347 AddProxy(info->id, info->create_proxy);
346 AddPPP(info->name, info->id, info->interface_ptr); 348 AddPPP(info->name, info->id, info->interface_ptr);
347 } 349 }
348 350
349 } // namespace proxy 351 } // namespace proxy
350 } // namespace ppapi 352 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698