Index: ui/chromeos/touch_exploration_controller.cc |
diff --git a/ui/chromeos/touch_exploration_controller.cc b/ui/chromeos/touch_exploration_controller.cc |
index 87fdb8004c1c1338b4ce5482e6a288728d73d48a..3c9180506c2a042a164817993d2fedcae0dab609 100644 |
--- a/ui/chromeos/touch_exploration_controller.cc |
+++ b/ui/chromeos/touch_exploration_controller.cc |
@@ -54,8 +54,8 @@ ui::EventRewriteStatus TouchExplorationController::RewriteEvent( |
if (!event.IsTouchEvent()) { |
if (event.IsKeyEvent()) { |
const ui::KeyEvent& key_event = static_cast<const ui::KeyEvent&>(event); |
- VLOG(0) << "\nKeyboard event: " << key_event.name() << "\n" |
- << " Key code: " << key_event.key_code() |
+ VLOG(0) << "\nKeyboard event: " << key_event.name() |
+ << "\n Key code: " << key_event.key_code() |
<< ", Flags: " << key_event.flags() |
<< ", Is char: " << key_event.is_char(); |
} |
@@ -156,7 +156,7 @@ ui::EventRewriteStatus TouchExplorationController::InNoFingersDown( |
VLOG_STATE(); |
return ui::EVENT_REWRITE_DISCARD; |
} |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name();; |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -196,7 +196,7 @@ ui::EventRewriteStatus TouchExplorationController::InSingleTapPressed( |
} |
return EVENT_REWRITE_DISCARD; |
} |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name();; |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -228,8 +228,10 @@ TouchExplorationController::InSingleTapOrTouchExploreReleased( |
ResetToNoFingersDown(); |
} |
return ui::EVENT_REWRITE_DISCARD; |
+ } else if (type == ui::ET_TOUCH_MOVED){ |
+ return ui::EVENT_REWRITE_DISCARD; |
} |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -255,7 +257,7 @@ ui::EventRewriteStatus TouchExplorationController::InDoubleTapPressed( |
} else if (type == ui::ET_TOUCH_MOVED) { |
return ui::EVENT_REWRITE_DISCARD; |
} |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -286,7 +288,7 @@ ui::EventRewriteStatus TouchExplorationController::InTouchExploration( |
state_ = TOUCH_EXPLORE_RELEASED; |
VLOG_STATE(); |
} else if (type != ui::ET_TOUCH_MOVED) { |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -352,7 +354,7 @@ ui::EventRewriteStatus TouchExplorationController::InTwoToOneFinger( |
return ui::EVENT_REWRITE_REWRITTEN; |
} |
} |
- NOTREACHED() << "Unexpected event type received"; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -363,7 +365,7 @@ ui::EventRewriteStatus TouchExplorationController::InPassthrough( |
if (!(type == ui::ET_TOUCH_RELEASED || type == ui::ET_TOUCH_CANCELLED || |
type == ui::ET_TOUCH_MOVED || type == ui::ET_TOUCH_PRESSED)) { |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -415,7 +417,7 @@ ui::EventRewriteStatus TouchExplorationController::InTouchExploreSecondPress( |
VLOG_STATE(); |
return ui::EVENT_REWRITE_REWRITTEN; |
} |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
@@ -425,7 +427,7 @@ ui::EventRewriteStatus TouchExplorationController::InWaitForRelease( |
ui::EventType type = event.type(); |
if (!(type == ui::ET_TOUCH_PRESSED || type == ui::ET_TOUCH_MOVED || |
type == ui::ET_TOUCH_RELEASED || type == ui::ET_TOUCH_CANCELLED)) { |
- NOTREACHED() << "Unexpected event type received."; |
+ NOTREACHED() << "Unexpected event type received: " << event.name(); |
return ui::EVENT_REWRITE_CONTINUE; |
} |
if (current_touch_ids_.size() == 0) { |