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

Unified Diff: ppapi/cpp/dev/hello_dev.h

Issue 8414054: Hello Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | « ppapi/c/dev/ppb_hello_dev.h ('k') | ppapi/cpp/dev/hello_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/hello_dev.h
diff --git a/ppapi/cpp/dev/hello_dev.h b/ppapi/cpp/dev/hello_dev.h
new file mode 100644
index 0000000000000000000000000000000000000000..25a01ec433f6d20965b45de2ea96796e1f22f768
--- /dev/null
+++ b/ppapi/cpp/dev/hello_dev.h
@@ -0,0 +1,42 @@
+// 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_HELLO_H_
+#define PPAPI_CPP_HELLO_H_
+
+#include "ppapi/c/dev/ppb_hello_dev.h"
+#include "ppapi/cpp/completion_callback.h"
+#include "ppapi/cpp/instance.h"
+#include "ppapi/cpp/resource.h"
+
+/// @file
+/// This file defines the API to create a hello.
+
+namespace pp {
+
+/// The <code>Hello</code> class identifies the hello type.
+class Hello : public Resource {
+ public:
+ /// This constructor creates a hello.
+ ///
+ /// @param[in] instance A <code>Instance</code> identifying the instance.
+ Hello(Instance* instance);
+
+ /// Hello() says hello.
+ ///
+ /// @return Returns <code>PP_OK</code>.
+ int32_t SayHello();
+
+ /// WhoAreYou returns who execute this function.
+ ///
+ /// @param[out] name A buffer to store the name who execute this function.
+ /// @param[in] size The size of name buffer.
+ /// @param[in] callback A callback which is invoked when asynchronous request
+ /// is completed.
+ void WhoAreYou(char *name, uint32_t size, CompletionCallback callback);
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_HELLO_H_
« no previous file with comments | « ppapi/c/dev/ppb_hello_dev.h ('k') | ppapi/cpp/dev/hello_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698