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

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

Issue 2021513002: Move willEnterFullscreen to WebRemoteFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 render_view_->SetFocus(is_focused); 374 render_view_->SetFocus(is_focused);
375 } 375 }
376 376
377 void RenderFrameProxy::OnSetFocusedFrame() { 377 void RenderFrameProxy::OnSetFocusedFrame() {
378 // This uses focusDocumentView rather than setFocusedFrame so that blur 378 // This uses focusDocumentView rather than setFocusedFrame so that blur
379 // events are properly dispatched on any currently focused elements. 379 // events are properly dispatched on any currently focused elements.
380 render_view_->webview()->focusDocumentView(web_frame_); 380 render_view_->webview()->focusDocumentView(web_frame_);
381 } 381 }
382 382
383 void RenderFrameProxy::OnWillEnterFullscreen() { 383 void RenderFrameProxy::OnWillEnterFullscreen() {
384 render_view_->webview()->willEnterFullScreen(web_frame_); 384 web_frame_->willEnterFullScreen();
385 } 385 }
386 386
387 void RenderFrameProxy::frameDetached(DetachType type) { 387 void RenderFrameProxy::frameDetached(DetachType type) {
388 if (type == DetachType::Remove && web_frame_->parent()) { 388 if (type == DetachType::Remove && web_frame_->parent()) {
389 web_frame_->parent()->removeChild(web_frame_); 389 web_frame_->parent()->removeChild(web_frame_);
390 390
391 // Let the browser process know this subframe is removed, so that it is 391 // Let the browser process know this subframe is removed, so that it is
392 // destroyed in its current process. 392 // destroyed in its current process.
393 Send(new FrameHostMsg_Detach(routing_id_)); 393 Send(new FrameHostMsg_Detach(routing_id_));
394 } 394 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 blink::WebLocalFrame* source) { 492 blink::WebLocalFrame* source) {
493 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 493 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
494 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 494 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
495 } 495 }
496 496
497 void RenderFrameProxy::frameFocused() { 497 void RenderFrameProxy::frameFocused() {
498 Send(new FrameHostMsg_FrameFocused(routing_id_)); 498 Send(new FrameHostMsg_FrameFocused(routing_id_));
499 } 499 }
500 500
501 } // namespace 501 } // namespace
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | third_party/WebKit/Source/core/dom/Fullscreen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698