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

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

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: Created 3 years, 10 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 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after
4215 } 4215 }
4216 4216
4217 bool WebContentsImpl::HideDownloadUI() const { 4217 bool WebContentsImpl::HideDownloadUI() const {
4218 return is_overlay_content_; 4218 return is_overlay_content_;
4219 } 4219 }
4220 4220
4221 bool WebContentsImpl::HasPersistentVideo() const { 4221 bool WebContentsImpl::HasPersistentVideo() const {
4222 return has_persistent_video_; 4222 return has_persistent_video_;
4223 } 4223 }
4224 4224
4225 bool WebContentsImpl::HasActiveFullscreenDominantVideo() const {
4226 return media_web_contents_observer_->HasActiveFullscreenDominantVideo();
4227 }
4228
4225 bool WebContentsImpl::IsFocusedElementEditable() { 4229 bool WebContentsImpl::IsFocusedElementEditable() {
4226 RenderFrameHostImpl* frame = GetFocusedFrame(); 4230 RenderFrameHostImpl* frame = GetFocusedFrame();
4227 return frame && frame->has_focused_editable_element(); 4231 return frame && frame->has_focused_editable_element();
4228 } 4232 }
4229 4233
4230 void WebContentsImpl::ClearFocusedElement() { 4234 void WebContentsImpl::ClearFocusedElement() {
4231 if (auto* frame = GetFocusedFrame()) 4235 if (auto* frame = GetFocusedFrame())
4232 frame->ClearFocusedElement(); 4236 frame->ClearFocusedElement();
4233 } 4237 }
4234 4238
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
5391 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5395 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5392 if (!render_view_host) 5396 if (!render_view_host)
5393 continue; 5397 continue;
5394 render_view_host_set.insert(render_view_host); 5398 render_view_host_set.insert(render_view_host);
5395 } 5399 }
5396 for (RenderViewHost* render_view_host : render_view_host_set) 5400 for (RenderViewHost* render_view_host : render_view_host_set)
5397 render_view_host->OnWebkitPreferencesChanged(); 5401 render_view_host->OnWebkitPreferencesChanged();
5398 } 5402 }
5399 5403
5400 } // namespace content 5404 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698