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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 FilterURL(policy, renderer_id, &validated_params.src_url); | 1147 FilterURL(policy, renderer_id, &validated_params.src_url); |
1148 FilterURL(policy, renderer_id, &validated_params.page_url); | 1148 FilterURL(policy, renderer_id, &validated_params.page_url); |
1149 FilterURL(policy, renderer_id, &validated_params.frame_url); | 1149 FilterURL(policy, renderer_id, &validated_params.frame_url); |
1150 | 1150 |
1151 view->ShowContextMenu(validated_params); | 1151 view->ShowContextMenu(validated_params); |
1152 } | 1152 } |
1153 | 1153 |
1154 void RenderViewHostImpl::OnMsgToggleFullscreen(bool enter_fullscreen) { | 1154 void RenderViewHostImpl::OnMsgToggleFullscreen(bool enter_fullscreen) { |
1155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1156 delegate_->ToggleFullscreenMode(enter_fullscreen); | 1156 delegate_->ToggleFullscreenMode(enter_fullscreen); |
| 1157 WasResized(); |
1157 } | 1158 } |
1158 | 1159 |
1159 void RenderViewHostImpl::OnMsgOpenURL(const GURL& url, | 1160 void RenderViewHostImpl::OnMsgOpenURL(const GURL& url, |
1160 const content::Referrer& referrer, | 1161 const content::Referrer& referrer, |
1161 WindowOpenDisposition disposition, | 1162 WindowOpenDisposition disposition, |
1162 int64 source_frame_id) { | 1163 int64 source_frame_id) { |
1163 GURL validated_url(url); | 1164 GURL validated_url(url); |
1164 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), | 1165 FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), |
1165 GetProcess()->GetID(), &validated_url); | 1166 GetProcess()->GetID(), &validated_url); |
1166 | 1167 |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 // can cause navigations to be ignored in OnMsgNavigate. | 1722 // can cause navigations to be ignored in OnMsgNavigate. |
1722 is_waiting_for_beforeunload_ack_ = false; | 1723 is_waiting_for_beforeunload_ack_ = false; |
1723 is_waiting_for_unload_ack_ = false; | 1724 is_waiting_for_unload_ack_ = false; |
1724 } | 1725 } |
1725 | 1726 |
1726 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1727 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
1727 STLDeleteValues(&power_save_blockers_); | 1728 STLDeleteValues(&power_save_blockers_); |
1728 } | 1729 } |
1729 | 1730 |
1730 } // namespace content | 1731 } // namespace content |
OLD | NEW |