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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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 (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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <tuple> 10 #include <tuple>
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 message = process_host_->sink().GetMessageAt(0); 1167 message = process_host_->sink().GetMessageAt(0);
1168 break; 1168 break;
1169 case 2: 1169 case 2:
1170 message = process_host_->sink().GetMessageAt(1); 1170 message = process_host_->sink().GetMessageAt(1);
1171 break; 1171 break;
1172 default: 1172 default:
1173 NOTREACHED(); 1173 NOTREACHED();
1174 break; 1174 break;
1175 } 1175 }
1176 DCHECK(message); 1176 DCHECK(message);
1177 std::tuple<IPC::WebInputEventPointer, ui::LatencyInfo, 1177 std::tuple<IPC::WebInputEventPointer,
1178 std::vector<IPC::WebInputEventPointer>, ui::LatencyInfo,
1178 InputEventDispatchType> 1179 InputEventDispatchType>
1179 data; 1180 data;
1180 InputMsg_HandleInputEvent::Read(message, &data); 1181 InputMsg_HandleInputEvent::Read(message, &data);
1181 IPC::WebInputEventPointer ipc_event = std::get<0>(data); 1182 IPC::WebInputEventPointer ipc_event = std::get<0>(data);
1182 const blink::WebGestureEvent* gesture_event = 1183 const blink::WebGestureEvent* gesture_event =
1183 static_cast<const blink::WebGestureEvent*>(ipc_event); 1184 static_cast<const blink::WebGestureEvent*>(ipc_event);
1184 return gesture_event->data.pinchUpdate.zoomDisabled; 1185 return gesture_event->data.pinchUpdate.zoomDisabled;
1185 } 1186 }
1186 1187
1187 MockRenderProcessHost* process_host_; 1188 MockRenderProcessHost* process_host_;
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 // Verify that this IPC is asking for no monitoring or immediate updates. 1640 // Verify that this IPC is asking for no monitoring or immediate updates.
1640 InputMsg_RequestCompositionUpdate::Read(composition_request_msg_for_child, 1641 InputMsg_RequestCompositionUpdate::Read(composition_request_msg_for_child,
1641 &child_msg_params); 1642 &child_msg_params);
1642 is_child_msg_for_immediate_request = std::get<0>(child_msg_params); 1643 is_child_msg_for_immediate_request = std::get<0>(child_msg_params);
1643 is_child_msg_for_monitor_request = std::get<1>(child_msg_params); 1644 is_child_msg_for_monitor_request = std::get<1>(child_msg_params);
1644 EXPECT_FALSE(is_child_msg_for_immediate_request); 1645 EXPECT_FALSE(is_child_msg_for_immediate_request);
1645 EXPECT_FALSE(is_child_msg_for_monitor_request); 1646 EXPECT_FALSE(is_child_msg_for_monitor_request);
1646 } 1647 }
1647 1648
1648 } // namespace content 1649 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | content/common/input/event_with_latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698