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

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

Issue 135483002: aura: Fix a couple of issues related to held touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 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
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_
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