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

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: Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" 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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 1215
1216 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, 1216 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture,
1217 bool last_unlocked_by_target) { 1217 bool last_unlocked_by_target) {
1218 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); 1218 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target);
1219 } 1219 }
1220 1220
1221 bool RenderViewHostImpl::IsFullscreen() const { 1221 bool RenderViewHostImpl::IsFullscreen() const {
1222 return delegate_->IsFullscreenForCurrentTab(); 1222 return delegate_->IsFullscreenForCurrentTab();
1223 } 1223 }
1224 1224
1225 blink::WebDisplayMode RenderViewHostImpl::GetDisplayMode() const {
1226 return delegate_->GetDisplayMode();
1227 }
1228
1225 void RenderViewHostImpl::OnFocus() { 1229 void RenderViewHostImpl::OnFocus() {
1226 // Note: We allow focus and blur from swapped out RenderViewHosts, even when 1230 // Note: We allow focus and blur from swapped out RenderViewHosts, even when
1227 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). 1231 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI).
1228 delegate_->Activate(); 1232 delegate_->Activate();
1229 } 1233 }
1230 1234
1231 void RenderViewHostImpl::OnBlur() { 1235 void RenderViewHostImpl::OnBlur() {
1232 delegate_->Deactivate(); 1236 delegate_->Deactivate();
1233 } 1237 }
1234 1238
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 FrameTree* frame_tree = delegate_->GetFrameTree(); 1423 FrameTree* frame_tree = delegate_->GetFrameTree();
1420 1424
1421 frame_tree->ResetForMainFrameSwap(); 1425 frame_tree->ResetForMainFrameSwap();
1422 } 1426 }
1423 1427
1424 void RenderViewHostImpl::SelectWordAroundCaret() { 1428 void RenderViewHostImpl::SelectWordAroundCaret() {
1425 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1429 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1426 } 1430 }
1427 1431
1428 } // namespace content 1432 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698