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

Side by Side Diff: ui/aura/root_window.h

Issue 110483004: aura: Use EventPrcessor interface for dispatching touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r243178 Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/aura/root_window.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // ReleaseMouseMoves()/ReleaseTouchMoves() is called. NOTE: because these 297 // ReleaseMouseMoves()/ReleaseTouchMoves() is called. NOTE: because these
298 // methods dispatch events from RootWindowHost the coordinates are in terms of 298 // methods dispatch events from RootWindowHost the coordinates are in terms of
299 // the root. 299 // the root.
300 ui::EventDispatchDetails DispatchMouseEventImpl(ui::MouseEvent* event) 300 ui::EventDispatchDetails DispatchMouseEventImpl(ui::MouseEvent* event)
301 WARN_UNUSED_RESULT; 301 WARN_UNUSED_RESULT;
302 ui::EventDispatchDetails DispatchMouseEventRepost(ui::MouseEvent* event) 302 ui::EventDispatchDetails DispatchMouseEventRepost(ui::MouseEvent* event)
303 WARN_UNUSED_RESULT; 303 WARN_UNUSED_RESULT;
304 ui::EventDispatchDetails DispatchMouseEventToTarget(ui::MouseEvent* event, 304 ui::EventDispatchDetails DispatchMouseEventToTarget(ui::MouseEvent* event,
305 Window* target) 305 Window* target)
306 WARN_UNUSED_RESULT; 306 WARN_UNUSED_RESULT;
307 ui::EventDispatchDetails DispatchTouchEventImpl(ui::TouchEvent* event)
308 WARN_UNUSED_RESULT;
309 ui::EventDispatchDetails DispatchHeldEvents() WARN_UNUSED_RESULT; 307 ui::EventDispatchDetails DispatchHeldEvents() WARN_UNUSED_RESULT;
310 // Creates and dispatches synthesized mouse move event using the 308 // Creates and dispatches synthesized mouse move event using the
311 // current mouse location. 309 // current mouse location.
312 ui::EventDispatchDetails SynthesizeMouseMoveEvent() WARN_UNUSED_RESULT; 310 ui::EventDispatchDetails SynthesizeMouseMoveEvent() WARN_UNUSED_RESULT;
313 311
314 void SynthesizeMouseMoveEventAsync(); 312 void SynthesizeMouseMoveEventAsync();
315 313
316 // Posts a task to send synthesized mouse move event if there 314 // Posts a task to send synthesized mouse move event if there
317 // is no a pending task. 315 // is no a pending task.
318 void PostMouseMoveEventAfterWindowChange(); 316 void PostMouseMoveEventAfterWindowChange();
319 317
320 void PreDispatchLocatedEvent(Window* target, ui::LocatedEvent* event); 318 void PreDispatchLocatedEvent(Window* target, ui::LocatedEvent* event);
319 void PreDispatchTouchEvent(Window* target, ui::TouchEvent* event);
321 320
322 // TODO(beng): evaluate the ideal ownership model. 321 // TODO(beng): evaluate the ideal ownership model.
323 scoped_ptr<Window> window_; 322 scoped_ptr<Window> window_;
324 323
325 scoped_ptr<RootWindowHost> host_; 324 scoped_ptr<RootWindowHost> host_;
326 325
327 // Touch ids that are currently down. 326 // Touch ids that are currently down.
328 uint32 touch_ids_down_; 327 uint32 touch_ids_down_;
329 328
330 // Last cursor set. Used for testing. 329 // Last cursor set. Used for testing.
(...skipping 26 matching lines...) Expand all
357 356
358 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 357 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
359 base::WeakPtrFactory<RootWindow> held_event_factory_; 358 base::WeakPtrFactory<RootWindow> held_event_factory_;
360 359
361 DISALLOW_COPY_AND_ASSIGN(RootWindow); 360 DISALLOW_COPY_AND_ASSIGN(RootWindow);
362 }; 361 };
363 362
364 } // namespace aura 363 } // namespace aura
365 364
366 #endif // UI_AURA_ROOT_WINDOW_H_ 365 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698