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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 bool synthesize_mouse_move_; | 381 bool synthesize_mouse_move_; |
382 bool waiting_on_compositing_end_; | 382 bool waiting_on_compositing_end_; |
383 bool draw_on_compositing_end_; | 383 bool draw_on_compositing_end_; |
384 | 384 |
385 bool defer_draw_scheduling_; | 385 bool defer_draw_scheduling_; |
386 | 386 |
387 // How many holds are outstanding. We try to defer dispatching mouse moves | 387 // How many holds are outstanding. We try to defer dispatching mouse moves |
388 // while the count is > 0. | 388 // while the count is > 0. |
389 int mouse_move_hold_count_; | 389 int mouse_move_hold_count_; |
390 scoped_ptr<MouseEvent> held_mouse_move_; | 390 scoped_ptr<MouseEvent> held_mouse_move_; |
| 391 // Used to schedule DispatchHeldMouseMove() when |mouse_move_hold_count_| goes |
| 392 // to 0. |
| 393 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; |
391 | 394 |
392 CompositorLock* compositor_lock_; | 395 CompositorLock* compositor_lock_; |
393 bool draw_on_compositor_unlock_; | 396 bool draw_on_compositor_unlock_; |
394 | 397 |
395 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 398 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
396 }; | 399 }; |
397 | 400 |
398 } // namespace aura | 401 } // namespace aura |
399 | 402 |
400 #endif // UI_AURA_ROOT_WINDOW_H_ | 403 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |