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

Side by Side Diff: ui/chromeos/touch_exploration_controller.h

Issue 465543003: Modified state flow for touch explore released in touch_exploration_controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: log unrecognized state Created 6 years, 4 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
« no previous file with comments | « no previous file | ui/chromeos/touch_exploration_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 5 #ifndef UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
7 7
8 #include "base/time/tick_clock.h" 8 #include "base/time/tick_clock.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const ui::Event& event, 179 const ui::Event& event,
180 scoped_ptr<ui::Event>* rewritten_event) OVERRIDE; 180 scoped_ptr<ui::Event>* rewritten_event) OVERRIDE;
181 virtual ui::EventRewriteStatus NextDispatchEvent( 181 virtual ui::EventRewriteStatus NextDispatchEvent(
182 const ui::Event& last_event, scoped_ptr<ui::Event>* new_event) OVERRIDE; 182 const ui::Event& last_event, scoped_ptr<ui::Event>* new_event) OVERRIDE;
183 183
184 // Event handlers based on the current state - see State, below. 184 // Event handlers based on the current state - see State, below.
185 ui::EventRewriteStatus InNoFingersDown( 185 ui::EventRewriteStatus InNoFingersDown(
186 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 186 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
187 ui::EventRewriteStatus InSingleTapPressed( 187 ui::EventRewriteStatus InSingleTapPressed(
188 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 188 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
189 ui::EventRewriteStatus InSingleTapOrTouchExploreReleased( 189 ui::EventRewriteStatus InSingleTapReleased(
190 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
191 ui::EventRewriteStatus InTouchExploreReleased(
190 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 192 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
191 ui::EventRewriteStatus InDoubleTapPending( 193 ui::EventRewriteStatus InDoubleTapPending(
192 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 194 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
193 ui::EventRewriteStatus InTouchReleasePending( 195 ui::EventRewriteStatus InTouchReleasePending(
194 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 196 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
195 ui::EventRewriteStatus InTouchExploration( 197 ui::EventRewriteStatus InTouchExploration(
196 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 198 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
197 ui::EventRewriteStatus InCornerPassthrough( 199 ui::EventRewriteStatus InCornerPassthrough(
198 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event); 200 const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
199 ui::EventRewriteStatus InOneFingerPassthrough( 201 ui::EventRewriteStatus InOneFingerPassthrough(
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 std::map<int, base::Closure> right_swipe_gestures_; 471 std::map<int, base::Closure> right_swipe_gestures_;
470 std::map<int, base::Closure> up_swipe_gestures_; 472 std::map<int, base::Closure> up_swipe_gestures_;
471 std::map<int, base::Closure> down_swipe_gestures_; 473 std::map<int, base::Closure> down_swipe_gestures_;
472 474
473 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 475 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
474 }; 476 };
475 477
476 } // namespace ui 478 } // namespace ui
477 479
478 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 480 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/chromeos/touch_exploration_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698