diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 14:49:32 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 14:49:32 +0000 |
commit | 8cef2068010fa12968211e3721d60d4d5fd3d4e9 (patch) | |
tree | 63907b7fd8fc28fd2d9a343772edb66a79a4d19a /ppapi/cpp/private/instance_private.h | |
parent | 304d682f570f60644c97fea6d86bc303ba6b2ac5 (diff) | |
download | chromium_src-8cef2068010fa12968211e3721d60d4d5fd3d4e9.zip chromium_src-8cef2068010fa12968211e3721d60d4d5fd3d4e9.tar.gz chromium_src-8cef2068010fa12968211e3721d60d4d5fd3d4e9.tar.bz2 |
Rename Instance_Trusted to Instance_Private, wire it up in Chrome.
Add C++ InstancePrivate.
BUG=None
TEST=PPAPI tests
Review URL: http://codereview.chromium.org/6871040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/private/instance_private.h')
-rw-r--r-- | ppapi/cpp/private/instance_private.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/ppapi/cpp/private/instance_private.h b/ppapi/cpp/private/instance_private.h new file mode 100644 index 0000000..226494c --- /dev/null +++ b/ppapi/cpp/private/instance_private.h @@ -0,0 +1,60 @@ +// 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. + +#ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ +#define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ + +/** + * @file + * Defines the API ... + * + * @addtogroup CPP + * @{ + */ + +#include "ppapi/cpp/instance.h" + +/** The C++ interface to the Pepper API. */ +namespace pp { + +class VarPrivate; + +class InstancePrivate : public Instance { + public: + explicit InstancePrivate(PP_Instance instance); + virtual ~InstancePrivate(); + + // @{ + /// @name PPP_Instance_Private methods for the plugin to override: + + /// See PPP_Instance_Private.GetInstanceObject. + // TODO(dmichael): Put this virtual function here and remove the + // 'Var GetInstanceObject()' version from pp::Instance. + //virtual VarPrivate GetInstanceObject(); + + // @} + + // @{ + /// @name PPB_Instance_Private methods for querying the browser: + + /// See PPB_Instance_Private.GetWindowObject. + VarPrivate GetWindowObject(); + + /// See PPB_Instance_Private.GetOwnerElementObject. + VarPrivate GetOwnerElementObject(); + + /// See PPB_Instance.ExecuteScript. + VarPrivate ExecuteScript(const VarPrivate& script, + VarPrivate* exception = NULL); + + // @} +}; + +} // namespace pp + +/** + * @} + * End addtogroup CPP + */ +#endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |