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

Side by Side Diff: chrome/renderer/pepper/chrome_ppapi_interfaces.cc

Issue 10173029: Add a PPB_Flash_Print interface and implement in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
(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 #include "chrome/renderer/pepper/chrome_ppapi_interfaces.h"
6
7 #include "chrome/renderer/pepper/ppb_flash_print_impl.h"
8 #include "chrome/renderer/pepper/ppb_nacl_private_impl.h"
9 #include "chrome/renderer/pepper/ppb_pdf_impl.h"
10 #include "ppapi/c/private/ppb_flash_print.h"
11 #include "ppapi/c/private/ppb_nacl_private.h"
12 #include "ppapi/c/private/ppb_pdf.h"
13 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
14
15 namespace chrome {
16
17 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
18 #if !defined(DISABLE_NACL)
19 if (interface_name == PPB_NACL_PRIVATE_INTERFACE)
20 return PPB_NaCl_Private_Impl::GetInterface();
21 #endif // DISABLE_NACL
22 if (interface_name == PPB_PDF_INTERFACE)
23 return PPB_PDF_Impl::GetInterface();
24 if (interface_name == PPB_FLASH_PRINT_INTERFACE)
25 return PPB_Flash_Print_Impl::GetInterface();
26 return NULL;
27 }
28
29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/chrome_ppapi_interfaces.h ('k') | chrome/renderer/pepper/ppb_flash_print_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698