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

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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Addressed ojan's comment. 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') | media/blink/webmediaplayer_impl.h » ('J')
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 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2871 2871
2872 #if defined(OS_ANDROID) // WMPI_CAST 2872 #if defined(OS_ANDROID) // WMPI_CAST
2873 media_player->SetMediaPlayerManager(GetMediaPlayerManager()); 2873 media_player->SetMediaPlayerManager(GetMediaPlayerManager());
2874 media_player->SetDeviceScaleFactor(render_view_->GetDeviceScaleFactor()); 2874 media_player->SetDeviceScaleFactor(render_view_->GetDeviceScaleFactor());
2875 media_player->SetUseFallbackPath(use_fallback_path); 2875 media_player->SetUseFallbackPath(use_fallback_path);
2876 #endif // defined(OS_ANDROID) 2876 #endif // defined(OS_ANDROID)
2877 2877
2878 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 2878 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
2879 remoting_controller_ptr->SetSwitchRendererCallback(base::Bind( 2879 remoting_controller_ptr->SetSwitchRendererCallback(base::Bind(
2880 &media::WebMediaPlayerImpl::ScheduleRestart, media_player->AsWeakPtr())); 2880 &media::WebMediaPlayerImpl::ScheduleRestart, media_player->AsWeakPtr()));
2881 remoting_controller_ptr->SetRemoteSinkAvailableChangedCallback(
2882 base::Bind(&media::WebMediaPlayerImpl::OnRemoteRenderingChanged,
2883 media_player->AsWeakPtr()));
2881 #endif 2884 #endif
2882 return media_player; 2885 return media_player;
2883 } 2886 }
2884 2887
2885 blink::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost( 2888 blink::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost(
2886 blink::WebApplicationCacheHostClient* client) { 2889 blink::WebApplicationCacheHostClient* client) {
2887 if (!frame_ || !frame_->view()) 2890 if (!frame_ || !frame_->view())
2888 return NULL; 2891 return NULL;
2889 2892
2890 DocumentState* document_state = 2893 DocumentState* document_state =
(...skipping 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after
6689 // event target. Potentially a Pepper plugin will receive the event. 6692 // event target. Potentially a Pepper plugin will receive the event.
6690 // In order to tell whether a plugin gets the last mouse event and which it 6693 // In order to tell whether a plugin gets the last mouse event and which it
6691 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6694 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6692 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6695 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6693 // |pepper_last_mouse_event_target_|. 6696 // |pepper_last_mouse_event_target_|.
6694 pepper_last_mouse_event_target_ = nullptr; 6697 pepper_last_mouse_event_target_ = nullptr;
6695 #endif 6698 #endif
6696 } 6699 }
6697 6700
6698 } // namespace content 6701 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | media/blink/webmediaplayer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698