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

Unified Diff: native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc

Issue 14607005: [NaCl SDK] Cleanup examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback 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/mouse_lock/mouse_lock.cc
diff --git a/native_client_sdk/src/examples/api/mouse_lock/mouselock.cc b/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc
similarity index 98%
rename from native_client_sdk/src/examples/api/mouse_lock/mouselock.cc
rename to native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc
index 4305b18caa584176ad9100db17dc6f86388a2ee6..6c02b8f13b016aa7175abb59aed4cff4dcebba20 100644
--- a/native_client_sdk/src/examples/api/mouse_lock/mouselock.cc
+++ b/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <cmath>
-#include <cstdlib>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
+#include <cmath>
+#include <cstdlib>
#include <algorithm>
-#include "mouselock.h"
+#include "mouse_lock.h"
#ifdef WIN32
#undef min
@@ -35,8 +35,6 @@ const uint32_t kBackgroundColor = 0xff606060;
const uint32_t kForegroundColor = 0xfff08080;
} // namespace
-namespace mouselock {
-
MouseLockInstance::~MouseLockInstance() {
free(background_scanline_);
background_scanline_ = NULL;
@@ -345,8 +343,6 @@ void MouseLockInstance::Log(const char* format, ...) {
console->Log(pp_instance(), PP_LOGLEVEL_ERROR, value.pp_var());
}
-} // namespace mouselock
-
// This object is the global object representing this plugin library as long
// as it is loaded.
class MouseLockModule : public pp::Module {
@@ -356,7 +352,7 @@ class MouseLockModule : public pp::Module {
// Override CreateInstance to create your customized Instance object.
virtual pp::Instance* CreateInstance(PP_Instance instance) {
- return new mouselock::MouseLockInstance(instance);
+ return new MouseLockInstance(instance);
}
};
« no previous file with comments | « native_client_sdk/src/examples/api/mouse_lock/mouse_lock.h ('k') | native_client_sdk/src/examples/api/mouse_lock/mouselock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698