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

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: Added implementation for content shell 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 1180
1181 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, 1181 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture,
1182 bool last_unlocked_by_target) { 1182 bool last_unlocked_by_target) {
1183 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); 1183 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target);
1184 } 1184 }
1185 1185
1186 bool RenderViewHostImpl::IsFullscreen() const { 1186 bool RenderViewHostImpl::IsFullscreen() const {
1187 return delegate_->IsFullscreenForCurrentTab(); 1187 return delegate_->IsFullscreenForCurrentTab();
1188 } 1188 }
1189 1189
1190 blink::WebDisplayMode RenderViewHostImpl::GetDisplayMode() const {
1191 return delegate_->GetDisplayMode();
1192 }
1193
1190 void RenderViewHostImpl::OnFocus() { 1194 void RenderViewHostImpl::OnFocus() {
1191 // Note: We allow focus and blur from swapped out RenderViewHosts, even when 1195 // Note: We allow focus and blur from swapped out RenderViewHosts, even when
1192 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). 1196 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI).
1193 delegate_->Activate(); 1197 delegate_->Activate();
1194 } 1198 }
1195 1199
1196 void RenderViewHostImpl::OnBlur() { 1200 void RenderViewHostImpl::OnBlur() {
1197 delegate_->Deactivate(); 1201 delegate_->Deactivate();
1198 } 1202 }
1199 1203
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 FrameTree* frame_tree = delegate_->GetFrameTree(); 1388 FrameTree* frame_tree = delegate_->GetFrameTree();
1385 1389
1386 frame_tree->ResetForMainFrameSwap(); 1390 frame_tree->ResetForMainFrameSwap();
1387 } 1391 }
1388 1392
1389 void RenderViewHostImpl::SelectWordAroundCaret() { 1393 void RenderViewHostImpl::SelectWordAroundCaret() {
1390 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1394 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1391 } 1395 }
1392 1396
1393 } // namespace content 1397 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698