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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 IPC_MESSAGE_HANDLER(ViewMsg_UpdateFrameTree, OnUpdatedFrameTree) | 1087 IPC_MESSAGE_HANDLER(ViewMsg_UpdateFrameTree, OnUpdatedFrameTree) |
1088 #if defined(OS_ANDROID) | 1088 #if defined(OS_ANDROID) |
1089 IPC_MESSAGE_HANDLER(ViewMsg_ActivateNearestFindResult, | 1089 IPC_MESSAGE_HANDLER(ViewMsg_ActivateNearestFindResult, |
1090 OnActivateNearestFindResult) | 1090 OnActivateNearestFindResult) |
1091 IPC_MESSAGE_HANDLER(ViewMsg_FindMatchRects, OnFindMatchRects) | 1091 IPC_MESSAGE_HANDLER(ViewMsg_FindMatchRects, OnFindMatchRects) |
1092 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItems, OnSelectPopupMenuItems) | 1092 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItems, OnSelectPopupMenuItems) |
1093 IPC_MESSAGE_HANDLER(ViewMsg_UndoScrollFocusedEditableNodeIntoView, | 1093 IPC_MESSAGE_HANDLER(ViewMsg_UndoScrollFocusedEditableNodeIntoView, |
1094 OnUndoScrollFocusedEditableNodeIntoRect) | 1094 OnUndoScrollFocusedEditableNodeIntoRect) |
1095 IPC_MESSAGE_HANDLER(ViewMsg_EnableHidingTopControls, | 1095 IPC_MESSAGE_HANDLER(ViewMsg_EnableHidingTopControls, |
1096 OnEnableHidingTopControls) | 1096 OnEnableHidingTopControls) |
| 1097 IPC_MESSAGE_HANDLER(ViewMsg_ShowTopControls, OnShowTopControls) |
1097 #elif defined(OS_MACOSX) | 1098 #elif defined(OS_MACOSX) |
1098 IPC_MESSAGE_HANDLER(ViewMsg_CopyToFindPboard, OnCopyToFindPboard) | 1099 IPC_MESSAGE_HANDLER(ViewMsg_CopyToFindPboard, OnCopyToFindPboard) |
1099 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, | 1100 IPC_MESSAGE_HANDLER(ViewMsg_PluginImeCompositionCompleted, |
1100 OnPluginImeCompositionCompleted) | 1101 OnPluginImeCompositionCompleted) |
1101 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) | 1102 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) |
1102 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize) | 1103 IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize) |
1103 IPC_MESSAGE_HANDLER(ViewMsg_SetWindowVisibility, OnSetWindowVisibility) | 1104 IPC_MESSAGE_HANDLER(ViewMsg_SetWindowVisibility, OnSetWindowVisibility) |
1104 IPC_MESSAGE_HANDLER(ViewMsg_WindowFrameChanged, OnWindowFrameChanged) | 1105 IPC_MESSAGE_HANDLER(ViewMsg_WindowFrameChanged, OnWindowFrameChanged) |
1105 #endif | 1106 #endif |
1106 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupDIB, | 1107 IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupDIB, |
(...skipping 5412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6519 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6520 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6520 RenderProcess::current()->ReleaseTransportDIB(dib); | 6521 RenderProcess::current()->ReleaseTransportDIB(dib); |
6521 } | 6522 } |
6522 | 6523 |
6523 void RenderViewImpl::DidCommitCompositorFrame() { | 6524 void RenderViewImpl::DidCommitCompositorFrame() { |
6524 RenderWidget::DidCommitCompositorFrame(); | 6525 RenderWidget::DidCommitCompositorFrame(); |
6525 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); | 6526 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); |
6526 } | 6527 } |
6527 | 6528 |
6528 } // namespace content | 6529 } // namespace content |
OLD | NEW |