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

Unified Diff: ui/views/widget/root_view.cc

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/root_view.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 1270bf757e4f912c9a357bf7c594251c701c035d..57f0d82c8565ed821f34c4b0f3a3fc120a1bc8eb 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -590,6 +590,19 @@ bool RootView::OnMouseWheel(const ui::MouseWheelEvent& event) {
return event.handled();
}
+void RootView::OnAccessibilityMouseEvent(ui::MouseEvent* event) {
+ for (View* v = GetEventHandlerForPoint(event->location());
+ v && v != this && !event->handled(); v = v->parent()) {
+ ui::EventDispatchDetails dispatch_details =
+ DispatchEvent(v, const_cast<ui::MouseEvent*>(event));
+ if (dispatch_details.dispatcher_destroyed ||
+ dispatch_details.target_destroyed) {
+ return;
+ }
+ return;
+ }
+}
+
void RootView::SetMouseHandler(View* new_mh) {
// If we're clearing the mouse handler, clear explicit_mouse_handler_ as well.
explicit_mouse_handler_ = (new_mh != NULL);
« no previous file with comments | « ui/views/widget/root_view.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698