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

Side by Side Diff: content/browser/renderer_host/render_widget_host_input_event_router.cc

Issue 2797473005: Fix interstitials on OOPIF-based guests. (Closed)
Patch Set: null check webcontents Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" 5 #include "content/browser/renderer_host/render_widget_host_input_event_router.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "cc/quads/surface_draw_quad.h" 10 #include "cc/quads/surface_draw_quad.h"
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 822
823 if (!touchpad_gesture_target_.target) 823 if (!touchpad_gesture_target_.target)
824 return; 824 return;
825 825
826 // TODO(mohsen): Add tests to check event location. 826 // TODO(mohsen): Add tests to check event location.
827 event->x += touchpad_gesture_target_.delta.x(); 827 event->x += touchpad_gesture_target_.delta.x();
828 event->y += touchpad_gesture_target_.delta.y(); 828 event->y += touchpad_gesture_target_.delta.y();
829 touchpad_gesture_target_.target->ProcessGestureEvent(*event, latency); 829 touchpad_gesture_target_.target->ProcessGestureEvent(*event, latency);
830 } 830 }
831 831
832 std::vector<RenderWidgetHostView*>
833 RenderWidgetHostInputEventRouter::GetRenderWidgetHostViewsForTests() const {
834 std::vector<RenderWidgetHostView*> hosts;
835 for (auto entry : owner_map_)
836 hosts.push_back(entry.second);
837
838 return hosts;
839 }
840
832 } // namespace content 841 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698