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

Unified Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 9960083: Add a Flash API to get the device ID. (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
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_flash_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index d2e5cb6edc300ef941b53f1c123647abff2b78c0..18d1f5ab3e3a9f8f06a4aae16fdfdd8bb114cf00 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -222,6 +222,11 @@ void UpdateActivity(PP_Instance instance) {
// TODO(viettrungluu): Implement me.
}
+PP_Var GetDeviceID(PP_Instance instance) {
+ // TODO(brettw) implement me.
+ return PP_MakeUndefined();
+}
+
const PPB_Flash_11 flash_interface_11 = {
&SetInstanceAlwaysOnTop,
&DrawGlyphs11,
@@ -260,6 +265,22 @@ const PPB_Flash_12_1 flash_interface_12_1 = {
&UpdateActivity
};
+const PPB_Flash_12_2 flash_interface_12_2 = {
+ &SetInstanceAlwaysOnTop,
+ &DrawGlyphs,
+ &GetProxyForURL,
+ &Navigate,
+ &RunMessageLoop,
+ &QuitMessageLoop,
+ &GetLocalTimeZoneOffset,
+ &GetCommandLineArgs,
+ &PreLoadFontWin,
+ &IsRectTopmost,
+ &InvokePrinting,
+ &UpdateActivity,
+ &GetDeviceID
+};
+
} // namespace
PPB_Flash_Proxy::PPB_Flash_Proxy(Dispatcher* dispatcher)
@@ -288,6 +309,11 @@ const PPB_Flash_12_1* PPB_Flash_Proxy::GetInterface12_1() {
return &flash_interface_12_1;
}
+// static
+const PPB_Flash_12_2* PPB_Flash_Proxy::GetInterface12_2() {
+ return &flash_interface_12_2;
+}
+
bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
// Prevent the dispatcher from going away during a call to Navigate.
// This must happen OUTSIDE of OnMsgNavigate since the handling code use
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698