OLD | NEW |
1 // Copyright (c) 2012 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/c/ppb_console.h" |
17 #include "ppapi/cpp/instance.h" | 17 #include "ppapi/cpp/instance.h" |
18 | 18 |
19 /** The C++ interface to the Pepper API. */ | 19 /** The C++ interface to the Pepper API. */ |
20 namespace pp { | 20 namespace pp { |
21 | 21 |
22 class Var; | 22 class Var; |
23 class VarPrivate; | 23 class VarPrivate; |
24 | 24 |
25 class InstancePrivate : public Instance { | 25 class InstancePrivate : public Instance { |
26 public: | 26 public: |
(...skipping 14 matching lines...) Expand all Loading... |
41 /// See PPB_Instance_Private.GetWindowObject. | 41 /// See PPB_Instance_Private.GetWindowObject. |
42 VarPrivate GetWindowObject(); | 42 VarPrivate GetWindowObject(); |
43 | 43 |
44 /// See PPB_Instance_Private.GetOwnerElementObject. | 44 /// See PPB_Instance_Private.GetOwnerElementObject. |
45 VarPrivate GetOwnerElementObject(); | 45 VarPrivate GetOwnerElementObject(); |
46 | 46 |
47 /// See PPB_Instance.ExecuteScript. | 47 /// See PPB_Instance.ExecuteScript. |
48 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); | 48 VarPrivate ExecuteScript(const Var& script, Var* exception = NULL); |
49 | 49 |
50 // @} | 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 // @} | |
64 }; | 51 }; |
65 | 52 |
66 } // namespace pp | 53 } // namespace pp |
67 | 54 |
68 /** | 55 /** |
69 * @} | 56 * @} |
70 * End addtogroup CPP | 57 * End addtogroup CPP |
71 */ | 58 */ |
72 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ | 59 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_ |
OLD | NEW |