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

Unified Diff: native_client_sdk/src/examples/input_events/custom_events.cc

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 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/input_events/custom_events.cc
diff --git a/native_client_sdk/src/examples/input_events/custom_events.cc b/native_client_sdk/src/examples/input_events/custom_events.cc
index 9e22808d5cd78b386b62db861ee471c9da8f5bcc..fe304c556f0394af5b615806cf7a6827d5bc2d26 100644
--- a/native_client_sdk/src/examples/input_events/custom_events.cc
+++ b/native_client_sdk/src/examples/input_events/custom_events.cc
@@ -53,7 +53,7 @@ std::string ModifierToString(uint32_t modifier) {
std::string KeyEvent::ToString() const {
std::ostringstream stream;
- stream << " Key event:"
+ stream << "Key event:"
<< " modifier:" << string_event_modifiers()
<< " key_code:" << key_code_
<< " time:" << timestamp_
@@ -64,7 +64,7 @@ std::string KeyEvent::ToString() const {
std::string MouseEvent::ToString() const {
std::ostringstream stream;
- stream << " Mouse event:"
+ stream << "Mouse event:"
<< " modifier:" << string_event_modifiers()
<< " button:" << MouseButtonToString(mouse_button_)
<< " x:" << x_position_
@@ -77,7 +77,7 @@ std::string MouseEvent::ToString() const {
std::string WheelEvent::ToString() const {
std::ostringstream stream;
- stream << "Wheel event."
+ stream << "Wheel event:"
<< " modifier:" << string_event_modifiers()
<< " deltax:" << delta_x_
<< " deltay:" << delta_y_
@@ -144,7 +144,7 @@ void TouchEvent::AddTouch(uint32_t id, float x, float y, float radii_x,
std::string TouchEvent::ToString() const {
std::ostringstream stream;
- stream << " Touch event:" << KindToString(kind_)
+ stream << "Touch event:" << KindToString(kind_)
<< " modifier:" << string_event_modifiers();
for (size_t i = 0; i < touches.size(); ++i) {
const Touch& touch = touches[i];
« no previous file with comments | « native_client_sdk/src/examples/hello_world_stdio/index.html ('k') | native_client_sdk/src/examples/input_events/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698