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

Unified Diff: ppapi/cpp/instance.h

Issue 6538028: A proposal for an initial postMessage interface. This will allow JavaScript ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: ppapi/cpp/instance.h
===================================================================
--- ppapi/cpp/instance.h (revision 77328)
+++ ppapi/cpp/instance.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// 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.
@@ -72,6 +72,9 @@
/** See PPP_Instance.GetInstanceObject. */
virtual Var GetInstanceObject();
+ /** See PPP_Instance.HandleEvent. */
sehr (please use chromium) 2011/03/14 23:47:46 s/Event/Message/
dmichael(do not use this one) 2011/03/16 21:08:48 Done.
+ virtual void HandleMessage(const Var& message_data);
+
/** See PPP_Instance.GetSelectedText. */
virtual Var GetSelectedText(bool html);
// @}
@@ -96,6 +99,9 @@
/** See PPB_Instance.ExecuteScript. */
Var ExecuteScript(const Var& script, Var* exception = NULL);
+
+ /** See PPB_Instance.PostMessage. */
+ void PostMessage(const Var& message);
// @}
/**
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/instance.cc » ('j') | ppapi/tests/test_post_message.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698