| 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_
|
|
|