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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: fixed build Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after
5246 NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); 5246 NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB);
5247 } 5247 }
5248 } 5248 }
5249 5249
5250 void WebContentsImpl::SetHasPersistentVideo(bool value) { 5250 void WebContentsImpl::SetHasPersistentVideo(bool value) {
5251 if (has_persistent_video_ == value) 5251 if (has_persistent_video_ == value)
5252 return; 5252 return;
5253 5253
5254 has_persistent_video_ = value; 5254 has_persistent_video_ = value;
5255 NotifyPreferencesChanged(); 5255 NotifyPreferencesChanged();
5256 media_web_contents_observer()->RequestPersistentVideo(value);
5256 } 5257 }
5257 5258
5258 #if defined(OS_ANDROID) 5259 #if defined(OS_ANDROID)
5259 void WebContentsImpl::NotifyFindMatchRectsReply( 5260 void WebContentsImpl::NotifyFindMatchRectsReply(
5260 int version, 5261 int version,
5261 const std::vector<gfx::RectF>& rects, 5262 const std::vector<gfx::RectF>& rects,
5262 const gfx::RectF& active_rect) { 5263 const gfx::RectF& active_rect) {
5263 if (delegate_) 5264 if (delegate_)
5264 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 5265 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
5265 } 5266 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
5390 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5391 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5391 if (!render_view_host) 5392 if (!render_view_host)
5392 continue; 5393 continue;
5393 render_view_host_set.insert(render_view_host); 5394 render_view_host_set.insert(render_view_host);
5394 } 5395 }
5395 for (RenderViewHost* render_view_host : render_view_host_set) 5396 for (RenderViewHost* render_view_host : render_view_host_set)
5396 render_view_host->OnWebkitPreferencesChanged(); 5397 render_view_host->OnWebkitPreferencesChanged();
5397 } 5398 }
5398 5399
5399 } // namespace content 5400 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698