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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/pepper/chrome_ppapi_interfaces.cc
diff --git a/chrome/renderer/pepper/chrome_ppapi_interfaces.cc b/chrome/renderer/pepper/chrome_ppapi_interfaces.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f62ab791e21504e7517155219696dbdfed7eb530
--- /dev/null
+++ b/chrome/renderer/pepper/chrome_ppapi_interfaces.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/renderer/pepper/chrome_ppapi_interfaces.h"
+
+#include "chrome/renderer/pepper/ppb_flash_print_impl.h"
+#include "chrome/renderer/pepper/ppb_nacl_private_impl.h"
+#include "chrome/renderer/pepper/ppb_pdf_impl.h"
+#include "ppapi/c/private/ppb_flash_print.h"
+#include "ppapi/c/private/ppb_nacl_private.h"
+#include "ppapi/c/private/ppb_pdf.h"
+#include "webkit/plugins/ppapi/ppapi_interface_factory.h"
+
+namespace chrome {
+
+const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
+#if !defined(DISABLE_NACL)
+ if (interface_name == PPB_NACL_PRIVATE_INTERFACE)
+ return PPB_NaCl_Private_Impl::GetInterface();
+#endif // DISABLE_NACL
+ if (interface_name == PPB_PDF_INTERFACE)
+ return PPB_PDF_Impl::GetInterface();
+ if (interface_name == PPB_FLASH_PRINT_INTERFACE)
+ return PPB_Flash_Print_Impl::GetInterface();
+ return NULL;
+}
+
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698