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

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 2139303002: Clean up around methods to enter/exit fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_widget.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/render_frame_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 render_view_->SetFocus(is_focused); 373 render_view_->SetFocus(is_focused);
374 } 374 }
375 375
376 void RenderFrameProxy::OnSetFocusedFrame() { 376 void RenderFrameProxy::OnSetFocusedFrame() {
377 // This uses focusDocumentView rather than setFocusedFrame so that blur 377 // This uses focusDocumentView rather than setFocusedFrame so that blur
378 // events are properly dispatched on any currently focused elements. 378 // events are properly dispatched on any currently focused elements.
379 render_view_->webview()->focusDocumentView(web_frame_); 379 render_view_->webview()->focusDocumentView(web_frame_);
380 } 380 }
381 381
382 void RenderFrameProxy::OnWillEnterFullscreen() { 382 void RenderFrameProxy::OnWillEnterFullscreen() {
383 web_frame_->willEnterFullScreen(); 383 web_frame_->willEnterFullscreen();
384 } 384 }
385 385
386 void RenderFrameProxy::frameDetached(DetachType type) { 386 void RenderFrameProxy::frameDetached(DetachType type) {
387 if (type == DetachType::Remove && web_frame_->parent()) { 387 if (type == DetachType::Remove && web_frame_->parent()) {
388 web_frame_->parent()->removeChild(web_frame_); 388 web_frame_->parent()->removeChild(web_frame_);
389 389
390 // Let the browser process know this subframe is removed, so that it is 390 // Let the browser process know this subframe is removed, so that it is
391 // destroyed in its current process. 391 // destroyed in its current process.
392 Send(new FrameHostMsg_Detach(routing_id_)); 392 Send(new FrameHostMsg_Detach(routing_id_));
393 } 393 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 blink::WebLocalFrame* source) { 493 blink::WebLocalFrame* source) {
494 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 494 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
495 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 495 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
496 } 496 }
497 497
498 void RenderFrameProxy::frameFocused() { 498 void RenderFrameProxy::frameFocused() {
499 Send(new FrameHostMsg_FrameFocused(routing_id_)); 499 Send(new FrameHostMsg_FrameFocused(routing_id_));
500 } 500 }
501 501
502 } // namespace 502 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698