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

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

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple getting display mode and renderer-initiated fullscreen mode code paths Created 5 years, 8 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
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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1179
1180 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, 1180 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture,
1181 bool last_unlocked_by_target) { 1181 bool last_unlocked_by_target) {
1182 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); 1182 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target);
1183 } 1183 }
1184 1184
1185 bool RenderViewHostImpl::IsFullscreen() const { 1185 bool RenderViewHostImpl::IsFullscreen() const {
1186 return delegate_->IsFullscreenForCurrentTab(); 1186 return delegate_->IsFullscreenForCurrentTab();
1187 } 1187 }
1188 1188
1189 blink::WebDisplayMode RenderViewHostImpl::GetDisplayMode() const {
1190 return delegate_->GetDisplayMode();
1191 }
1192
1189 void RenderViewHostImpl::OnFocus() { 1193 void RenderViewHostImpl::OnFocus() {
1190 // Note: We allow focus and blur from swapped out RenderViewHosts, even when 1194 // Note: We allow focus and blur from swapped out RenderViewHosts, even when
1191 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). 1195 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI).
1192 delegate_->Activate(); 1196 delegate_->Activate();
1193 } 1197 }
1194 1198
1195 void RenderViewHostImpl::OnBlur() { 1199 void RenderViewHostImpl::OnBlur() {
1196 delegate_->Deactivate(); 1200 delegate_->Deactivate();
1197 } 1201 }
1198 1202
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 FrameTree* frame_tree = delegate_->GetFrameTree(); 1414 FrameTree* frame_tree = delegate_->GetFrameTree();
1411 1415
1412 frame_tree->ResetForMainFrameSwap(); 1416 frame_tree->ResetForMainFrameSwap();
1413 } 1417 }
1414 1418
1415 void RenderViewHostImpl::SelectWordAroundCaret() { 1419 void RenderViewHostImpl::SelectWordAroundCaret() {
1416 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1420 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1417 } 1421 }
1418 1422
1419 } // namespace content 1423 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698