Chromium Code Reviews| Index: ui/views/controls/menu/menu_controller.cc |
| =================================================================== |
| --- ui/views/controls/menu/menu_controller.cc (revision 218517) |
| +++ ui/views/controls/menu/menu_controller.cc (working copy) |
| @@ -2124,6 +2124,14 @@ |
| PostMessage(window, event_type, nc_hit_result, |
| MAKELPARAM(screen_loc.x(), screen_loc.y())); |
| } |
| + } else if (event.type() == ui::ET_GESTURE_TAP_DOWN) { |
| + // Gesture events need to be posted to the target root window. In |
| + // desktop chrome there could be multiple root windows. |
| + aura::RootWindow* target_root = |
| + aura::RootWindow::GetForAcceleratedWidget(window); |
| + if (target_root) { |
|
sky
2013/08/22 22:07:16
nit: no {}
ananta
2013/08/22 22:48:15
Done.
|
| + target_root->RepostEvent(event); |
| + } |
| } |
| } |
| } |