| OLD | NEW |
| 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_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 std::move(synthetic_gesture), on_complete); | 1320 std::move(synthetic_gesture), on_complete); |
| 1321 } | 1321 } |
| 1322 } | 1322 } |
| 1323 | 1323 |
| 1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { | 1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { |
| 1325 if (!view_) | 1325 if (!view_) |
| 1326 return; | 1326 return; |
| 1327 view_->UpdateCursor(cursor); | 1327 view_->UpdateCursor(cursor); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) { | 1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint( |
| 1331 Send(new ViewMsg_ShowContextMenu( | 1331 const gfx::Point& point, |
| 1332 GetRoutingID(), ui::MENU_SOURCE_MOUSE, point)); | 1332 const ui::MenuSourceType source_type) { |
| 1333 Send(new ViewMsg_ShowContextMenu(GetRoutingID(), source_type, point)); |
| 1333 } | 1334 } |
| 1334 | 1335 |
| 1335 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { | 1336 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { |
| 1336 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); | 1337 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); |
| 1337 } | 1338 } |
| 1338 | 1339 |
| 1339 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { | 1340 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { |
| 1340 return latency_tracker_.latency_component_id(); | 1341 return latency_tracker_.latency_component_id(); |
| 1341 } | 1342 } |
| 1342 | 1343 |
| (...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2637 RenderProcessHost* rph = GetProcess(); | 2638 RenderProcessHost* rph = GetProcess(); |
| 2638 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); | 2639 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); |
| 2639 i != messages.end(); ++i) { | 2640 i != messages.end(); ++i) { |
| 2640 rph->OnMessageReceived(*i); | 2641 rph->OnMessageReceived(*i); |
| 2641 if (i->dispatch_error()) | 2642 if (i->dispatch_error()) |
| 2642 rph->OnBadMessageReceived(*i); | 2643 rph->OnBadMessageReceived(*i); |
| 2643 } | 2644 } |
| 2644 } | 2645 } |
| 2645 | 2646 |
| 2646 } // namespace content | 2647 } // namespace content |
| OLD | NEW |