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

Unified Diff: ppapi/shared_impl/ppp_instance_combined.cc

Issue 7189045: Make o.o.p. proxy handle PPP_Instance versions 0.4 and 0.5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 6 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/shared_impl/ppp_instance_combined.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/shared_impl/ppp_instance_combined.cc
diff --git a/ppapi/shared_impl/ppp_instance_combined.cc b/ppapi/shared_impl/ppp_instance_combined.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8da13af5727c54e1eb437254417d8aa972e90599
--- /dev/null
+++ b/ppapi/shared_impl/ppp_instance_combined.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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 "ppapi/shared_impl/ppp_instance_combined.h"
+
+namespace ppapi {
+
+PPP_Instance_Combined::PPP_Instance_Combined(
+ const PPP_Instance_0_5& instance_if)
+ : PPP_Instance_0_5(instance_if),
+ GetInstanceObject_0_4(NULL) {
+}
+
+PPP_Instance_Combined::PPP_Instance_Combined(
+ const PPP_Instance_0_4& instance_if)
+ : PPP_Instance_0_5(), // Zero-initialize.
+ GetInstanceObject_0_4(instance_if.GetInstanceObject) {
+ DidCreate = instance_if.DidCreate;
+ DidDestroy = instance_if.DidDestroy;
+ DidChangeView = instance_if.DidChangeView;
+ DidChangeFocus = instance_if.DidChangeFocus;
+ HandleInputEvent = instance_if.HandleInputEvent;
+ HandleDocumentLoad = instance_if.HandleDocumentLoad;
+}
+
+} // namespace ppapi
+
« no previous file with comments | « ppapi/shared_impl/ppp_instance_combined.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698