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

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

Issue 10448102: Adds switch to disable generating mouse events from touch events and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove released and fix bug in GestureRecognizerImpl 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 | « ui/aura/env.cc ('k') | 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 362
363 // Use to post mouse move event. 363 // Use to post mouse move event.
364 base::WeakPtrFactory<RootWindow> event_factory_; 364 base::WeakPtrFactory<RootWindow> event_factory_;
365 365
366 // Last location seen in a mouse event. 366 // Last location seen in a mouse event.
367 gfx::Point last_mouse_location_; 367 gfx::Point last_mouse_location_;
368 368
369 // ui::EventFlags containing the current state of the mouse buttons. 369 // ui::EventFlags containing the current state of the mouse buttons.
370 int mouse_button_flags_; 370 int mouse_button_flags_;
371 371
372 // Touch ids that are currently down.
373 uint32 touch_ids_down_;
374
372 // Last cursor set. Used for testing. 375 // Last cursor set. Used for testing.
373 gfx::NativeCursor last_cursor_; 376 gfx::NativeCursor last_cursor_;
374 377
375 // Is the cursor currently shown? Used for testing. 378 // Is the cursor currently shown? Used for testing.
376 bool cursor_shown_; 379 bool cursor_shown_;
377 380
378 ObserverList<RootWindowObserver> observers_; 381 ObserverList<RootWindowObserver> observers_;
379 382
380 // The capture window. When not-null, this window receives all the mouse and 383 // The capture window. When not-null, this window receives all the mouse and
381 // touch events. 384 // touch events.
(...skipping 22 matching lines...) Expand all
404 bool draw_on_compositor_unlock_; 407 bool draw_on_compositor_unlock_;
405 408
406 int draw_trace_count_; 409 int draw_trace_count_;
407 410
408 DISALLOW_COPY_AND_ASSIGN(RootWindow); 411 DISALLOW_COPY_AND_ASSIGN(RootWindow);
409 }; 412 };
410 413
411 } // namespace aura 414 } // namespace aura
412 415
413 #endif // UI_AURA_ROOT_WINDOW_H_ 416 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698