OLD | NEW |
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_AURA_WINDOW_EVENT_DISPATCHER_H_ | 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 scoped_ptr<ui::LocatedEvent> held_move_event_; | 251 scoped_ptr<ui::LocatedEvent> held_move_event_; |
252 | 252 |
253 // Allowing for reposting of events. Used when exiting context menus. | 253 // Allowing for reposting of events. Used when exiting context menus. |
254 scoped_ptr<ui::LocatedEvent> held_repostable_event_; | 254 scoped_ptr<ui::LocatedEvent> held_repostable_event_; |
255 | 255 |
256 // Set when dispatching a held event. | 256 // Set when dispatching a held event. |
257 bool dispatching_held_event_; | 257 bool dispatching_held_event_; |
258 | 258 |
259 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 259 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
260 | 260 |
| 261 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 262 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 263 |
261 // Used to schedule reposting an event. | 264 // Used to schedule reposting an event. |
262 base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_; | 265 base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_; |
263 | 266 |
264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | |
265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | |
266 | |
267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
268 }; | 268 }; |
269 | 269 |
270 } // namespace aura | 270 } // namespace aura |
271 | 271 |
272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
OLD | NEW |