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

Unified Diff: native_client_sdk/src/examples/api/gamepad/gamepad.h

Issue 14607005: [NaCl SDK] Cleanup examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: native_client_sdk/src/examples/api/gamepad/gamepad.h
diff --git a/native_client_sdk/src/examples/api/gamepad/gamepad.h b/native_client_sdk/src/examples/api/gamepad/gamepad.h
index 67649e0e48e8fab9648578112ea4fa4b58956ba2..fec69748e3803519ae3a40d8386f8df2fbb6e3bd 100644
--- a/native_client_sdk/src/examples/api/gamepad/gamepad.h
+++ b/native_client_sdk/src/examples/api/gamepad/gamepad.h
@@ -14,18 +14,10 @@
#include "ppapi/cpp/rect.h"
#include "ppapi/cpp/size.h"
-namespace gamepad {
-
-// The Instance class. One of these exists for each instance of your NaCl
-// module on the web page. The browser will ask the Module object to create
-// a new Instance for each occurrence of the <embed> tag that has these
-// attributes:
-// type="application/x-nacl"
-// nacl="pi_generator.nmf"
-class Gamepad : public pp::Instance {
+class GamepadInstance : public pp::Instance {
public:
- explicit Gamepad(PP_Instance instance);
- virtual ~Gamepad();
+ explicit GamepadInstance(PP_Instance instance);
+ virtual ~GamepadInstance();
// Update the graphics context to the new size, and regenerate |pixel_buffer_|
// to fit the new size as well.
@@ -67,6 +59,4 @@ class Gamepad : public pp::Instance {
bool quit_;
};
-} // namespace gamepad
-
#endif // EXAMPLES_GAMEPAD_GAMEPAD_H_

Powered by Google App Engine
This is Rietveld 408576698