| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index c73b789cb8f00d00a90ce6b3407b47fca487437e..a2338e8b16795f569336cf93aafaffd6c0f01248 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -115,6 +115,7 @@
|
| #include "content/renderer/mojo_bindings_controller.h"
|
| #include "content/renderer/navigation_state_impl.h"
|
| #include "content/renderer/notification_permission_dispatcher.h"
|
| +#include "content/renderer/pepper/pepper_audio_controller.h"
|
| #include "content/renderer/pepper/plugin_instance_throttler_impl.h"
|
| #include "content/renderer/presentation/presentation_dispatcher.h"
|
| #include "content/renderer/push_messaging/push_messaging_dispatcher.h"
|
| @@ -1483,6 +1484,9 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(FrameMsg_ContextMenuClosed, OnContextMenuClosed)
|
| IPC_MESSAGE_HANDLER(FrameMsg_CustomContextMenuAction,
|
| OnCustomContextMenuAction)
|
| +#if defined(ENABLE_PLUGINS)
|
| + IPC_MESSAGE_HANDLER(FrameMsg_SetPepperVolume, OnSetPepperVolume)
|
| +#endif //defined(ENABLE_PLUGINS)
|
| IPC_MESSAGE_HANDLER(InputMsg_Undo, OnUndo)
|
| IPC_MESSAGE_HANDLER(InputMsg_Redo, OnRedo)
|
| IPC_MESSAGE_HANDLER(InputMsg_Cut, OnCut)
|
| @@ -6238,6 +6242,20 @@ void RenderFrameImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance,
|
| GetRenderWidget()->UpdateSelectionBounds();
|
| }
|
|
|
| +void RenderFrameImpl::PepperStartsPlayback(PepperPluginInstanceImpl* instance) {
|
| + // TODO(zqzhang): send PepperStartsPlayback message to the browser.
|
| +}
|
| +
|
| +void RenderFrameImpl::PepperStopsPlayback(PepperPluginInstanceImpl* instance) {
|
| + // TODO(zqzhang): send PepperStopsPlayback message to the browser.
|
| +}
|
| +
|
| +void RenderFrameImpl::OnSetPepperVolume(int32_t pp_instance, double volume) {
|
| + PepperPluginInstanceImpl* instance = static_cast<PepperPluginInstanceImpl*>(
|
| + PepperPluginInstance::Get(pp_instance));
|
| + if (instance)
|
| + instance->audio_controller().SetVolume(volume);
|
| +}
|
| #endif // ENABLE_PLUGINS
|
|
|
| void RenderFrameImpl::RenderWidgetSetFocus(bool enable) {
|
|
|