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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 #endif // defined(ENABLE_PLUGINS) | 1487 #endif // defined(ENABLE_PLUGINS) |
1488 | 1488 |
1489 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { | 1489 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { |
1490 if (!web_user_media_client_) | 1490 if (!web_user_media_client_) |
1491 InitializeUserMediaClient(); | 1491 InitializeUserMediaClient(); |
1492 return web_user_media_client_ | 1492 return web_user_media_client_ |
1493 ? web_user_media_client_->media_stream_dispatcher() | 1493 ? web_user_media_client_->media_stream_dispatcher() |
1494 : nullptr; | 1494 : nullptr; |
1495 } | 1495 } |
1496 | 1496 |
1497 void RenderFrameImpl::ScriptedPrint(bool user_initiated) { | |
1498 for (auto& observer : observers_) | |
1499 observer.ScriptedPrint(user_initiated); | |
1500 } | |
1501 | |
1502 bool RenderFrameImpl::Send(IPC::Message* message) { | 1497 bool RenderFrameImpl::Send(IPC::Message* message) { |
1503 return RenderThread::Get()->Send(message); | 1498 return RenderThread::Get()->Send(message); |
1504 } | 1499 } |
1505 | 1500 |
1506 #if defined(USE_EXTERNAL_POPUP_MENU) | 1501 #if defined(USE_EXTERNAL_POPUP_MENU) |
1507 void RenderFrameImpl::DidHideExternalPopupMenu() { | 1502 void RenderFrameImpl::DidHideExternalPopupMenu() { |
1508 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close | 1503 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close |
1509 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. | 1504 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. |
1510 external_popup_menu_.reset(); | 1505 external_popup_menu_.reset(); |
1511 } | 1506 } |
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6627 // event target. Potentially a Pepper plugin will receive the event. | 6622 // event target. Potentially a Pepper plugin will receive the event. |
6628 // In order to tell whether a plugin gets the last mouse event and which it | 6623 // In order to tell whether a plugin gets the last mouse event and which it |
6629 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6624 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6630 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6625 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6631 // |pepper_last_mouse_event_target_|. | 6626 // |pepper_last_mouse_event_target_|. |
6632 pepper_last_mouse_event_target_ = nullptr; | 6627 pepper_last_mouse_event_target_ = nullptr; |
6633 #endif | 6628 #endif |
6634 } | 6629 } |
6635 | 6630 |
6636 } // namespace content | 6631 } // namespace content |
OLD | NEW |