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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 OnQueueSyntheticGesture) | 545 OnQueueSyntheticGesture) |
546 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, | 546 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, |
547 OnImeCancelComposition) | 547 OnImeCancelComposition) |
548 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) | 548 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) |
549 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, | 549 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, |
550 OnUpdateScreenRectsAck) | 550 OnUpdateScreenRectsAck) |
551 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) | 551 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) |
552 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) | 552 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) |
553 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, | 553 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, |
554 OnSwapCompositorFrame(msg)) | 554 OnSwapCompositorFrame(msg)) |
| 555 IPC_MESSAGE_HANDLER(ViewHostMsg_BeginFrameDidNotSwap, |
| 556 OnBeginFrameDidNotSwap) |
555 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) | 557 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
556 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) | 558 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
557 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, | 559 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
558 OnTextInputStateChanged) | 560 OnTextInputStateChanged) |
559 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) | 561 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) |
560 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse) | 562 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse) |
561 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup, | 563 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup, |
562 OnShowDisambiguationPopup) | 564 OnShowDisambiguationPopup) |
563 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, | 565 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
564 OnSelectionBoundsChanged) | 566 OnSelectionBoundsChanged) |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 ++i) { | 1853 ++i) { |
1852 rph->OnMessageReceived(*i); | 1854 rph->OnMessageReceived(*i); |
1853 if (i->dispatch_error()) | 1855 if (i->dispatch_error()) |
1854 rph->OnBadMessageReceived(*i); | 1856 rph->OnBadMessageReceived(*i); |
1855 } | 1857 } |
1856 messages_to_deliver_with_frame.clear(); | 1858 messages_to_deliver_with_frame.clear(); |
1857 | 1859 |
1858 return true; | 1860 return true; |
1859 } | 1861 } |
1860 | 1862 |
| 1863 void RenderWidgetHostImpl::OnBeginFrameDidNotSwap( |
| 1864 const cc::BeginFrameAck& ack) { |
| 1865 if (view_) |
| 1866 view_->OnBeginFrameDidNotSwap(ack); |
| 1867 } |
| 1868 |
1861 void RenderWidgetHostImpl::OnUpdateRect( | 1869 void RenderWidgetHostImpl::OnUpdateRect( |
1862 const ViewHostMsg_UpdateRect_Params& params) { | 1870 const ViewHostMsg_UpdateRect_Params& params) { |
1863 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); | 1871 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); |
1864 TimeTicks paint_start = TimeTicks::Now(); | 1872 TimeTicks paint_start = TimeTicks::Now(); |
1865 | 1873 |
1866 // Update our knowledge of the RenderWidget's size. | 1874 // Update our knowledge of the RenderWidget's size. |
1867 current_size_ = params.view_size; | 1875 current_size_ = params.view_size; |
1868 | 1876 |
1869 bool is_resize_ack = | 1877 bool is_resize_ack = |
1870 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags); | 1878 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags); |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2547 // different from the receiver's. | 2555 // different from the receiver's. |
2548 file_system_file.url = | 2556 file_system_file.url = |
2549 GURL(storage::GetIsolatedFileSystemRootURIString( | 2557 GURL(storage::GetIsolatedFileSystemRootURIString( |
2550 file_system_url.origin(), filesystem_id, std::string()) | 2558 file_system_url.origin(), filesystem_id, std::string()) |
2551 .append(register_name)); | 2559 .append(register_name)); |
2552 file_system_file.filesystem_id = filesystem_id; | 2560 file_system_file.filesystem_id = filesystem_id; |
2553 } | 2561 } |
2554 } | 2562 } |
2555 | 2563 |
2556 } // namespace content | 2564 } // namespace content |
OLD | NEW |