| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
| 6 #define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * Defines the API ... | 10 * Defines the API ... |
| 11 * | 11 * |
| 12 * @addtogroup CPP | 12 * @addtogroup CPP |
| 13 * @{ | 13 * @{ |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include "ppapi/c/dev/ppb_console_dev.h" |
| 16 #include "ppapi/cpp/instance.h" | 17 #include "ppapi/cpp/instance.h" |
| 17 | 18 |
| 18 /** The C++ interface to the Pepper API. */ | 19 /** The C++ interface to the Pepper API. */ |
| 19 namespace pp { | 20 namespace pp { |
| 20 | 21 |
| 22 class Var; |
| 21 class VarPrivate; | 23 class VarPrivate; |
| 22 | 24 |
| 23 class InstancePrivate : public Instance { | 25 class InstancePrivate : public Instance { |
| 24 public: | 26 public: |
| 25 explicit InstancePrivate(PP_Instance instance); | 27 explicit InstancePrivate(PP_Instance instance); |
| 26 virtual ~InstancePrivate(); | 28 virtual ~InstancePrivate(); |
| 27 | 29 |
| 28 // @{ | 30 // @{ |
| 29 /// @name PPP_Instance_Private methods for the plugin to override: | 31 /// @name PPP_Instance_Private methods for the plugin to override: |
| 30 | 32 |
| 31 /// See PPP_Instance_Private.GetInstanceObject. | 33 /// See PPP_Instance_Private.GetInstanceObject. |
| 32 virtual Var GetInstanceObject(); | 34 virtual Var GetInstanceObject(); |
| 33 | 35 |
| 34 // @} | 36 // @} |
| 35 | 37 |
| 36 // @{ | 38 // @{ |
| 37 /// @name PPB_Instance_Private methods for querying the browser: | 39 /// @name PPB_Instance_Private methods for querying the browser: |
| 38 | 40 |
| 39 /// See PPB_Instance_Private.GetWindowObject. | 41 /// See PPB_Instance_Private.GetWindowObject. |
| 40 VarPrivate GetWindowObject(); | 42 VarPrivate GetWindowObject(); |
| 41 | 43 |
| 42 /// See PPB_Instance_Private.GetOwnerElementObject. | 44 /// See PPB_Instance_Private.GetOwnerElementObject. |
| 43 VarPrivate GetOwnerElementObject(); | 45 VarPrivate GetOwnerElementObject(); |
| 44 | 46 |
| 45 /// See PPB_Instance.ExecuteScript. | 47 /// See PPB_Instance.ExecuteScript. |
| 46 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); | 48 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); |
| 47 | 49 |
| 48 // @} | 50 // @} |
| 51 |
| 52 // @{ |
| 53 /// @name PPB_Console_Dev methods for logging to the console: |
| 54 |
| 55 /// See PPB_Console_Dev.Log. |
| 56 void LogToConsole(PP_LogLevel_Dev level, const Var& value); |
| 57 |
| 58 /// See PPB_Console_Dev.LogWithSource. |
| 59 void LogToConsoleWithSource(PP_LogLevel_Dev level, |
| 60 const Var& source, |
| 61 const Var& value); |
| 62 |
| 63 // @} |
| 49 }; | 64 }; |
| 50 | 65 |
| 51 } // namespace pp | 66 } // namespace pp |
| 52 | 67 |
| 53 /** | 68 /** |
| 54 * @} | 69 * @} |
| 55 * End addtogroup CPP | 70 * End addtogroup CPP |
| 56 */ | 71 */ |
| 57 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 72 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
| OLD | NEW |