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

Unified Diff: ppapi/cpp/private/instance_private.h

Issue 10703146: PPAPI: Add console logging methods to pp::InstancePrivate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 8 years, 5 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 | « no previous file | ppapi/cpp/private/instance_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/instance_private.h
diff --git a/ppapi/cpp/private/instance_private.h b/ppapi/cpp/private/instance_private.h
index d658f0b66f4fadcbaae082603b2209f4e8750453..c6c51b7baf20f6a581175963233a4a1e2a35b78a 100644
--- a/ppapi/cpp/private/instance_private.h
+++ b/ppapi/cpp/private/instance_private.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -13,11 +13,13 @@
* @{
*/
+#include "ppapi/c/dev/ppb_console_dev.h"
#include "ppapi/cpp/instance.h"
/** The C++ interface to the Pepper API. */
namespace pp {
+class Var;
class VarPrivate;
class InstancePrivate : public Instance {
@@ -46,6 +48,19 @@ class InstancePrivate : public Instance {
VarPrivate ExecuteScript(const Var& script, Var* exception = NULL);
// @}
+
+ // @{
+ /// @name PPB_Console_Dev methods for logging to the console:
+
+ /// See PPB_Console_Dev.Log.
+ void LogToConsole(PP_LogLevel_Dev level, const Var& value);
+
+ /// See PPB_Console_Dev.LogWithSource.
+ void LogToConsoleWithSource(PP_LogLevel_Dev level,
+ const Var& source,
+ const Var& value);
+
+ // @}
};
} // namespace pp
« no previous file with comments | « no previous file | ppapi/cpp/private/instance_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698