OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1444 } | 1444 } |
1445 #endif // defined(ENABLE_PLUGINS) | 1445 #endif // defined(ENABLE_PLUGINS) |
1446 | 1446 |
1447 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { | 1447 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { |
1448 if (!web_user_media_client_) | 1448 if (!web_user_media_client_) |
1449 InitializeUserMediaClient(); | 1449 InitializeUserMediaClient(); |
1450 return web_user_media_client_ ? | 1450 return web_user_media_client_ ? |
1451 web_user_media_client_->media_stream_dispatcher() : NULL; | 1451 web_user_media_client_->media_stream_dispatcher() : NULL; |
1452 } | 1452 } |
1453 | 1453 |
1454 mojom::RenderFrameMessageFilter* | |
1455 RenderFrameImpl::render_frame_message_filter() { | |
1456 if (!render_frame_message_filter_) { | |
1457 RenderThread::Get()->GetChannel()->GetRemoteAssociatedInterface( | |
jam
2016/07/26 19:13:32
it's a bit odd that this mojo interface is registe
Ken Rockot(use gerrit already)
2016/07/26 21:00:34
Done
| |
1458 &render_frame_message_filter_); | |
1459 } | |
1460 return render_frame_message_filter_.get(); | |
1461 } | |
1454 bool RenderFrameImpl::Send(IPC::Message* message) { | 1462 bool RenderFrameImpl::Send(IPC::Message* message) { |
1455 return RenderThread::Get()->Send(message); | 1463 return RenderThread::Get()->Send(message); |
1456 } | 1464 } |
1457 | 1465 |
1458 #if defined(USE_EXTERNAL_POPUP_MENU) | 1466 #if defined(USE_EXTERNAL_POPUP_MENU) |
1459 void RenderFrameImpl::DidHideExternalPopupMenu() { | 1467 void RenderFrameImpl::DidHideExternalPopupMenu() { |
1460 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close | 1468 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close |
1461 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. | 1469 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. |
1462 external_popup_menu_.reset(); | 1470 external_popup_menu_.reset(); |
1463 } | 1471 } |
(...skipping 4876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6340 // event target. Potentially a Pepper plugin will receive the event. | 6348 // event target. Potentially a Pepper plugin will receive the event. |
6341 // In order to tell whether a plugin gets the last mouse event and which it | 6349 // In order to tell whether a plugin gets the last mouse event and which it |
6342 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6350 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6343 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6351 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6344 // |pepper_last_mouse_event_target_|. | 6352 // |pepper_last_mouse_event_target_|. |
6345 pepper_last_mouse_event_target_ = nullptr; | 6353 pepper_last_mouse_event_target_ = nullptr; |
6346 #endif | 6354 #endif |
6347 } | 6355 } |
6348 | 6356 |
6349 } // namespace content | 6357 } // namespace content |
OLD | NEW |