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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 #endif // defined(ENABLE_PLUGINS) | 1497 #endif // defined(ENABLE_PLUGINS) |
1498 | 1498 |
1499 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { | 1499 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { |
1500 if (!web_user_media_client_) | 1500 if (!web_user_media_client_) |
1501 InitializeUserMediaClient(); | 1501 InitializeUserMediaClient(); |
1502 return web_user_media_client_ | 1502 return web_user_media_client_ |
1503 ? web_user_media_client_->media_stream_dispatcher() | 1503 ? web_user_media_client_->media_stream_dispatcher() |
1504 : nullptr; | 1504 : nullptr; |
1505 } | 1505 } |
1506 | 1506 |
| 1507 void RenderFrameImpl::ScriptedPrint(bool user_initiated) { |
| 1508 for (auto& observer : observers_) |
| 1509 observer.ScriptedPrint(user_initiated); |
| 1510 } |
| 1511 |
1507 bool RenderFrameImpl::Send(IPC::Message* message) { | 1512 bool RenderFrameImpl::Send(IPC::Message* message) { |
1508 return RenderThread::Get()->Send(message); | 1513 return RenderThread::Get()->Send(message); |
1509 } | 1514 } |
1510 | 1515 |
1511 #if defined(USE_EXTERNAL_POPUP_MENU) | 1516 #if defined(USE_EXTERNAL_POPUP_MENU) |
1512 void RenderFrameImpl::DidHideExternalPopupMenu() { | 1517 void RenderFrameImpl::DidHideExternalPopupMenu() { |
1513 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close | 1518 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close |
1514 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. | 1519 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. |
1515 external_popup_menu_.reset(); | 1520 external_popup_menu_.reset(); |
1516 } | 1521 } |
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6632 // event target. Potentially a Pepper plugin will receive the event. | 6637 // event target. Potentially a Pepper plugin will receive the event. |
6633 // In order to tell whether a plugin gets the last mouse event and which it | 6638 // In order to tell whether a plugin gets the last mouse event and which it |
6634 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6639 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6635 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6640 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6636 // |pepper_last_mouse_event_target_|. | 6641 // |pepper_last_mouse_event_target_|. |
6637 pepper_last_mouse_event_target_ = nullptr; | 6642 pepper_last_mouse_event_target_ = nullptr; |
6638 #endif | 6643 #endif |
6639 } | 6644 } |
6640 | 6645 |
6641 } // namespace content | 6646 } // namespace content |
OLD | NEW |