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_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateEncoding, OnMsgUpdateEncoding) | 910 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateEncoding, OnMsgUpdateEncoding) |
911 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnMsgUpdateTargetURL) | 911 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnMsgUpdateTargetURL) |
912 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSetting, | 912 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSetting, |
913 OnUpdateInspectorSetting) | 913 OnUpdateInspectorSetting) |
914 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) | 914 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) |
915 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) | 915 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) |
916 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading) | 916 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading) |
917 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading) | 917 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading) |
918 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeLoadProgress, | 918 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeLoadProgress, |
919 OnMsgDidChangeLoadProgress) | 919 OnMsgDidChangeLoadProgress) |
920 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInFrame, | 920 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, |
921 OnMsgDocumentAvailableInFrame) | 921 OnMsgDocumentAvailableInMainFrame) |
922 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, | 922 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, |
923 OnMsgDocumentOnLoadCompletedInMainFrame) | 923 OnMsgDocumentOnLoadCompletedInMainFrame) |
924 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) | 924 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) |
925 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, | 925 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, |
926 OnMsgToggleFullscreen) | 926 OnMsgToggleFullscreen) |
927 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) | 927 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) |
928 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, | 928 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, |
929 OnMsgDidContentsPreferredSizeChange) | 929 OnMsgDidContentsPreferredSizeChange) |
930 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollbarsForMainFrame, | 930 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollbarsForMainFrame, |
931 OnMsgDidChangeScrollbarsForMainFrame) | 931 OnMsgDidChangeScrollbarsForMainFrame) |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 } | 1199 } |
1200 | 1200 |
1201 void RenderViewHostImpl::OnMsgDidStopLoading() { | 1201 void RenderViewHostImpl::OnMsgDidStopLoading() { |
1202 delegate_->DidStopLoading(); | 1202 delegate_->DidStopLoading(); |
1203 } | 1203 } |
1204 | 1204 |
1205 void RenderViewHostImpl::OnMsgDidChangeLoadProgress(double load_progress) { | 1205 void RenderViewHostImpl::OnMsgDidChangeLoadProgress(double load_progress) { |
1206 delegate_->DidChangeLoadProgress(load_progress); | 1206 delegate_->DidChangeLoadProgress(load_progress); |
1207 } | 1207 } |
1208 | 1208 |
1209 void RenderViewHostImpl::OnMsgDocumentAvailableInFrame( | 1209 void RenderViewHostImpl::OnMsgDocumentAvailableInMainFrame() { |
1210 bool main_frame, | 1210 delegate_->DocumentAvailableInMainFrame(this); |
1211 const GURL& source_url) { | |
1212 delegate_->DocumentAvailableInFrame(this, main_frame, source_url); | |
1213 } | 1211 } |
1214 | 1212 |
1215 void RenderViewHostImpl::OnMsgDocumentOnLoadCompletedInMainFrame( | 1213 void RenderViewHostImpl::OnMsgDocumentOnLoadCompletedInMainFrame( |
1216 int32 page_id) { | 1214 int32 page_id) { |
1217 delegate_->DocumentOnLoadCompletedInMainFrame(this, page_id); | 1215 delegate_->DocumentOnLoadCompletedInMainFrame(this, page_id); |
1218 } | 1216 } |
1219 | 1217 |
1220 void RenderViewHostImpl::OnMsgContextMenu( | 1218 void RenderViewHostImpl::OnMsgContextMenu( |
1221 const content::ContextMenuParams& params) { | 1219 const content::ContextMenuParams& params) { |
1222 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1220 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 is_waiting_for_beforeunload_ack_ = false; | 1819 is_waiting_for_beforeunload_ack_ = false; |
1822 is_waiting_for_unload_ack_ = false; | 1820 is_waiting_for_unload_ack_ = false; |
1823 has_timed_out_on_unload_ = false; | 1821 has_timed_out_on_unload_ = false; |
1824 } | 1822 } |
1825 | 1823 |
1826 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1824 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
1827 STLDeleteValues(&power_save_blockers_); | 1825 STLDeleteValues(&power_save_blockers_); |
1828 } | 1826 } |
1829 | 1827 |
1830 } // namespace content | 1828 } // namespace content |
OLD | NEW |