| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |