| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |