| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 Window* mouse_pressed_handler_; | 334 Window* mouse_pressed_handler_; |
| 335 Window* mouse_moved_handler_; | 335 Window* mouse_moved_handler_; |
| 336 Window* event_dispatch_target_; | 336 Window* event_dispatch_target_; |
| 337 Window* old_dispatch_target_; | 337 Window* old_dispatch_target_; |
| 338 | 338 |
| 339 bool synthesize_mouse_move_; | 339 bool synthesize_mouse_move_; |
| 340 | 340 |
| 341 // How many move holds are outstanding. We try to defer dispatching | 341 // How many move holds are outstanding. We try to defer dispatching |
| 342 // touch/mouse moves while the count is > 0. | 342 // touch/mouse moves while the count is > 0. |
| 343 int move_hold_count_; | 343 int move_hold_count_; |
| 344 // The location of |held_move_event_| is in |window_|'s coordinate. |
| 344 scoped_ptr<ui::LocatedEvent> held_move_event_; | 345 scoped_ptr<ui::LocatedEvent> held_move_event_; |
| 345 | 346 |
| 346 // Allowing for reposting of events. Used when exiting context menus. | 347 // Allowing for reposting of events. Used when exiting context menus. |
| 347 scoped_ptr<ui::LocatedEvent> held_repostable_event_; | 348 scoped_ptr<ui::LocatedEvent> held_repostable_event_; |
| 348 | 349 |
| 349 // Set when dispatching a held event. | 350 // Set when dispatching a held event. |
| 350 bool dispatching_held_event_; | 351 bool dispatching_held_event_; |
| 351 | 352 |
| 352 scoped_ptr<ui::ViewProp> prop_; | 353 scoped_ptr<ui::ViewProp> prop_; |
| 353 | 354 |
| 354 // Used to schedule reposting an event. | 355 // Used to schedule reposting an event. |
| 355 base::WeakPtrFactory<RootWindow> repost_event_factory_; | 356 base::WeakPtrFactory<RootWindow> repost_event_factory_; |
| 356 | 357 |
| 357 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 358 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 358 base::WeakPtrFactory<RootWindow> held_event_factory_; | 359 base::WeakPtrFactory<RootWindow> held_event_factory_; |
| 359 | 360 |
| 360 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 361 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 361 }; | 362 }; |
| 362 | 363 |
| 363 } // namespace aura | 364 } // namespace aura |
| 364 | 365 |
| 365 #endif // UI_AURA_ROOT_WINDOW_H_ | 366 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |