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

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

Issue 10545129: aura:Delay call to DispatchHeldMouseMove from RootWindow::ReleaseMouseMoves (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 6 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 #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
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_
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