Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 9673001: Notify RenderWidgets when "tab fullscreen" state changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698