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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Fix nits. Created 4 years 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 | « no previous file | media/blink/webmediaplayer_impl.h » ('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 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 2848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 2859
2860 #if defined(OS_ANDROID) // WMPI_CAST 2860 #if defined(OS_ANDROID) // WMPI_CAST
2861 media_player->SetMediaPlayerManager(GetMediaPlayerManager()); 2861 media_player->SetMediaPlayerManager(GetMediaPlayerManager());
2862 media_player->SetDeviceScaleFactor(render_view_->GetDeviceScaleFactor()); 2862 media_player->SetDeviceScaleFactor(render_view_->GetDeviceScaleFactor());
2863 media_player->SetUseFallbackPath(use_fallback_path); 2863 media_player->SetUseFallbackPath(use_fallback_path);
2864 #endif // defined(OS_ANDROID) 2864 #endif // defined(OS_ANDROID)
2865 2865
2866 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 2866 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
2867 remoting_controller_ptr->SetSwitchRendererCallback(base::Bind( 2867 remoting_controller_ptr->SetSwitchRendererCallback(base::Bind(
2868 &media::WebMediaPlayerImpl::ScheduleRestart, media_player->AsWeakPtr())); 2868 &media::WebMediaPlayerImpl::ScheduleRestart, media_player->AsWeakPtr()));
2869 remoting_controller_ptr->SetRemoteSinkAvailableChangedCallback(base::Bind(
2870 &media::WebMediaPlayerImpl::ActivateViewportIntersectionMonitoring,
2871 media_player->AsWeakPtr()));
2869 #endif 2872 #endif
2870 return media_player; 2873 return media_player;
2871 } 2874 }
2872 2875
2873 blink::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost( 2876 blink::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost(
2874 blink::WebApplicationCacheHostClient* client) { 2877 blink::WebApplicationCacheHostClient* client) {
2875 if (!frame_ || !frame_->view()) 2878 if (!frame_ || !frame_->view())
2876 return NULL; 2879 return NULL;
2877 2880
2878 DocumentState* document_state = 2881 DocumentState* document_state =
(...skipping 3797 matching lines...) Expand 10 before | Expand all | Expand 10 after
6676 // event target. Potentially a Pepper plugin will receive the event. 6679 // event target. Potentially a Pepper plugin will receive the event.
6677 // In order to tell whether a plugin gets the last mouse event and which it 6680 // In order to tell whether a plugin gets the last mouse event and which it
6678 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6681 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6679 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6682 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6680 // |pepper_last_mouse_event_target_|. 6683 // |pepper_last_mouse_event_target_|.
6681 pepper_last_mouse_event_target_ = nullptr; 6684 pepper_last_mouse_event_target_ = nullptr;
6682 #endif 6685 #endif
6683 } 6686 }
6684 6687
6685 } // namespace content 6688 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698