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

Side by Side Diff: native_client_sdk/src/examples/hello_world_glibc/helper_functions.h

Issue 9234043: Support GLBIC example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EXAMPLES_HELLO_WORLD_HELPER_FUNCTIONS_H_
6 #define EXAMPLES_HELLO_WORLD_HELPER_FUNCTIONS_H_
7
8 /// @file
9 /// These functions are stand-ins for your complicated computations which you
10 /// want to run in native code. We do two very simple things: return 42, and
11 /// reverse a string. But you can imagine putting more complicated things here
12 /// which might be difficult or slow to achieve in JavaScript, such as
13 /// cryptography, artificial intelligence, signal processing, physics modeling,
14 /// etc. See hello_world.cc for the code which is required for loading a NaCl
15 /// application and exposing methods to JavaScript.
16
17 #include <ppapi/c/pp_stdint.h>
18 #include <string>
19
20 namespace hello_world {
21
22 /// This is the module's function that does the work to compute the value 42.
23 int32_t FortyTwo();
24
25 /// This function is passed a string and returns a copy of the string with the
26 /// characters in reverse order.
27 /// @param[in] text The string to reverse.
28 /// @return A copy of @a text with the characters in reverse order.
29 std::string ReverseText(const std::string& text);
30
31 } // namespace hello_world
32
33 #endif // EXAMPLES_HELLO_WORLD_HELPER_FUNCTIONS_H_
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698