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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2386103004: Ensure that we don't report huge mouse movement deltas for mouse enter and leave events. (Closed)
Patch Set: Address sky review comments Created 4 years, 2 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 // Returns whether the widget needs to grab mouse capture to work properly. 418 // Returns whether the widget needs to grab mouse capture to work properly.
419 bool NeedsMouseCapture(); 419 bool NeedsMouseCapture();
420 420
421 // Confirm existing composition text in the webpage and ask the input method 421 // Confirm existing composition text in the webpage and ask the input method
422 // to cancel its ongoing composition session. 422 // to cancel its ongoing composition session.
423 void FinishImeCompositionSession(); 423 void FinishImeCompositionSession();
424 424
425 // This method computes movementX/Y and keeps track of mouse location for 425 // This method computes movementX/Y and keeps track of mouse location for
426 // mouse lock on all mouse move events. 426 // mouse lock on all mouse move events.
427 void ModifyEventMovementAndCoords(blink::WebMouseEvent* event); 427 // |ui_mouse_event| contains the mouse event received.
428 // |event| contains the WebMouseEvent being modified.
429 void ModifyEventMovementAndCoords(const ui::MouseEvent& ui_mouse_event,
430 blink::WebMouseEvent* event);
428 431
429 // Sends an IPC to the renderer process to communicate whether or not 432 // Sends an IPC to the renderer process to communicate whether or not
430 // the mouse cursor is visible anywhere on the screen. 433 // the mouse cursor is visible anywhere on the screen.
431 void NotifyRendererOfCursorVisibilityState(bool is_visible); 434 void NotifyRendererOfCursorVisibilityState(bool is_visible);
432 435
433 // If |clip| is non-empty and and doesn't contain |rect| or |clip| is empty 436 // If |clip| is non-empty and and doesn't contain |rect| or |clip| is empty
434 // SchedulePaint() is invoked for |rect|. 437 // SchedulePaint() is invoked for |rect|.
435 void SchedulePaintIfNotInClip(const gfx::Rect& rect, const gfx::Rect& clip); 438 void SchedulePaintIfNotInClip(const gfx::Rect& rect, const gfx::Rect& clip);
436 439
437 // Helper method to determine if, in mouse locked mode, the cursor should be 440 // Helper method to determine if, in mouse locked mode, the cursor should be
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 int32_t last_active_widget_routing_id_; 697 int32_t last_active_widget_routing_id_;
695 698
696 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 699 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
697 700
698 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 701 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
699 }; 702 };
700 703
701 } // namespace content 704 } // namespace content
702 705
703 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698