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

Unified Diff: ppapi/cpp/private/flash.cc

Issue 10787039: PPAPI Flash: Remove support for PPB_Flash 12.0-12.2 and PPB_Flash_Clipboard 3.0 from C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash.cc
diff --git a/ppapi/cpp/private/flash.cc b/ppapi/cpp/private/flash.cc
index 2c914316e16d1a0fb1aeab2d1f882b965f4fe7c3..3a3da4e2bd8e1a098904b347ab5596cf68ba14a9 100644
--- a/ppapi/cpp/private/flash.cc
+++ b/ppapi/cpp/private/flash.cc
@@ -36,18 +36,6 @@ template <> const char* interface_name<PPB_Flash_12_3>() {
return PPB_FLASH_INTERFACE_12_3;
}
-template <> const char* interface_name<PPB_Flash_12_2>() {
- return PPB_FLASH_INTERFACE_12_2;
-}
-
-template <> const char* interface_name<PPB_Flash_12_1>() {
- return PPB_FLASH_INTERFACE_12_1;
-}
-
-template <> const char* interface_name<PPB_Flash_12_0>() {
- return PPB_FLASH_INTERFACE_12_0;
-}
-
template <> const char* interface_name<PPB_Flash_Print_1_0>() {
return PPB_FLASH_PRINT_INTERFACE_1_0;
}
@@ -74,15 +62,6 @@ void InitializeCombinedInterface() {
} else if (has_interface<PPB_Flash_12_3>()) {
memcpy(&flash_12_combined_interface, get_interface<PPB_Flash_12_3>(),
sizeof(PPB_Flash_12_3));
- } else if (has_interface<PPB_Flash_12_2>()) {
- memcpy(&flash_12_combined_interface, get_interface<PPB_Flash_12_2>(),
- sizeof(PPB_Flash_12_2));
- } else if (has_interface<PPB_Flash_12_1>()) {
- memcpy(&flash_12_combined_interface, get_interface<PPB_Flash_12_1>(),
- sizeof(PPB_Flash_12_1));
- } else if (has_interface<PPB_Flash_12_0>()) {
- memcpy(&flash_12_combined_interface, get_interface<PPB_Flash_12_0>(),
- sizeof(PPB_Flash_12_0));
}
initialized_combined_interface = true;
}
@@ -95,10 +74,7 @@ namespace flash {
bool Flash::IsAvailable() {
return has_interface<PPB_Flash_12_5>() ||
has_interface<PPB_Flash_12_4>() ||
- has_interface<PPB_Flash_12_3>() ||
- has_interface<PPB_Flash_12_2>() ||
- has_interface<PPB_Flash_12_1>() ||
- has_interface<PPB_Flash_12_0>();
+ has_interface<PPB_Flash_12_3>();
}
// static
« no previous file with comments | « no previous file | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698