Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: content/browser/media/session/pepper_player_delegate.cc

Issue 2798083002: Record user interactions with MediaSession by action type (Closed)
Patch Set: addressed style nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/media/session/pepper_player_delegate.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/browser/media/session/pepper_player_delegate.h" 5 #include "content/browser/media/session/pepper_player_delegate.h"
6 6
7 #include "content/browser/frame_host/render_frame_host_impl.h" 7 #include "content/browser/frame_host/render_frame_host_impl.h"
8 #include "content/browser/media/session/pepper_playback_observer.h" 8 #include "content/browser/media/session/pepper_playback_observer.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "media/base/media_switches.h" 10 #include "media/base/media_switches.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void PepperPlayerDelegate::OnSetVolumeMultiplier(int player_id, 52 void PepperPlayerDelegate::OnSetVolumeMultiplier(int player_id,
53 double volume_multiplier) { 53 double volume_multiplier) {
54 if (!ShouldDuckFlash()) 54 if (!ShouldDuckFlash())
55 return; 55 return;
56 56
57 DCHECK_EQ(player_id, kPlayerId); 57 DCHECK_EQ(player_id, kPlayerId);
58 SetVolume(player_id, volume_multiplier); 58 SetVolume(player_id, volume_multiplier);
59 } 59 }
60 60
61 RenderFrameHost* PepperPlayerDelegate::GetRenderFrameHost() const { 61 RenderFrameHost* PepperPlayerDelegate::render_frame_host() const {
62 return render_frame_host_; 62 return render_frame_host_;
63 } 63 }
64 64
65 void PepperPlayerDelegate::SetVolume(int player_id, double volume) { 65 void PepperPlayerDelegate::SetVolume(int player_id, double volume) {
66 render_frame_host_->Send(new FrameMsg_SetPepperVolume( 66 render_frame_host_->Send(new FrameMsg_SetPepperVolume(
67 render_frame_host_->GetRoutingID(), pp_instance_, volume)); 67 render_frame_host_->GetRoutingID(), pp_instance_, volume));
68 } 68 }
69 69
70 } // namespace content 70 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/session/pepper_player_delegate.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698