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

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

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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 | « ui/base/touch/selection_bound_unittest.cc ('k') | 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 // Binds DispatchShiftSearchKeyEvent to a specific third key. 252 // Binds DispatchShiftSearchKeyEvent to a specific third key.
253 base::Closure BindShiftSearchKeyEvent(const ui::KeyboardCode third_key); 253 base::Closure BindShiftSearchKeyEvent(const ui::KeyboardCode third_key);
254 254
255 // Dispatches a single key with the given flags. 255 // Dispatches a single key with the given flags.
256 void DispatchKeyWithFlags(const ui::KeyboardCode key, int flags); 256 void DispatchKeyWithFlags(const ui::KeyboardCode key, int flags);
257 257
258 // Binds DispatchKeyWithFlags to a specific key and flags. 258 // Binds DispatchKeyWithFlags to a specific key and flags.
259 base::Closure BindKeyEventWithFlags(const ui::KeyboardCode key, int flags); 259 base::Closure BindKeyEventWithFlags(const ui::KeyboardCode key, int flags);
260 260
261 scoped_ptr<ui::Event> CreateMouseMoveEvent(const gfx::PointF& location, 261 scoped_ptr<ui::MouseEvent> CreateMouseMoveEvent(const gfx::PointF& location,
262 int flags); 262 int flags);
263 263
264 void EnterTouchToMouseMode(); 264 void EnterTouchToMouseMode();
265 265
266 void PlaySoundForTimer(); 266 void PlaySoundForTimer();
267 267
268 // Some constants used in touch_exploration_controller: 268 // Some constants used in touch_exploration_controller:
269 269
270 // Within this many dips of the screen edge, the release event generated will 270 // Within this many dips of the screen edge, the release event generated will
271 // reset the state to NoFingersDown. 271 // reset the state to NoFingersDown.
272 const float kLeavingScreenEdge = 6; 272 const float kLeavingScreenEdge = 6;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 std::map<int, base::Closure> right_swipe_gestures_; 470 std::map<int, base::Closure> right_swipe_gestures_;
471 std::map<int, base::Closure> up_swipe_gestures_; 471 std::map<int, base::Closure> up_swipe_gestures_;
472 std::map<int, base::Closure> down_swipe_gestures_; 472 std::map<int, base::Closure> down_swipe_gestures_;
473 473
474 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 474 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
475 }; 475 };
476 476
477 } // namespace ui 477 } // namespace ui
478 478
479 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 479 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/base/touch/selection_bound_unittest.cc ('k') | ui/chromeos/touch_exploration_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698