| OLD | NEW |
| 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 4237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4248 } | 4248 } |
| 4249 | 4249 |
| 4250 bool WebContentsImpl::HideDownloadUI() const { | 4250 bool WebContentsImpl::HideDownloadUI() const { |
| 4251 return is_overlay_content_; | 4251 return is_overlay_content_; |
| 4252 } | 4252 } |
| 4253 | 4253 |
| 4254 bool WebContentsImpl::HasPersistentVideo() const { | 4254 bool WebContentsImpl::HasPersistentVideo() const { |
| 4255 return has_persistent_video_; | 4255 return has_persistent_video_; |
| 4256 } | 4256 } |
| 4257 | 4257 |
| 4258 bool WebContentsImpl::HasActiveEffectivelyFullscreenVideo() const { |
| 4259 return media_web_contents_observer_->HasActiveEffectivelyFullscreenVideo(); |
| 4260 } |
| 4261 |
| 4258 bool WebContentsImpl::IsFocusedElementEditable() { | 4262 bool WebContentsImpl::IsFocusedElementEditable() { |
| 4259 RenderFrameHostImpl* frame = GetFocusedFrame(); | 4263 RenderFrameHostImpl* frame = GetFocusedFrame(); |
| 4260 return frame && frame->has_focused_editable_element(); | 4264 return frame && frame->has_focused_editable_element(); |
| 4261 } | 4265 } |
| 4262 | 4266 |
| 4263 void WebContentsImpl::ClearFocusedElement() { | 4267 void WebContentsImpl::ClearFocusedElement() { |
| 4264 if (auto* frame = GetFocusedFrame()) | 4268 if (auto* frame = GetFocusedFrame()) |
| 4265 frame->ClearFocusedElement(); | 4269 frame->ClearFocusedElement(); |
| 4266 } | 4270 } |
| 4267 | 4271 |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5428 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); | 5432 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); |
| 5429 if (!render_view_host) | 5433 if (!render_view_host) |
| 5430 continue; | 5434 continue; |
| 5431 render_view_host_set.insert(render_view_host); | 5435 render_view_host_set.insert(render_view_host); |
| 5432 } | 5436 } |
| 5433 for (RenderViewHost* render_view_host : render_view_host_set) | 5437 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5434 render_view_host->OnWebkitPreferencesChanged(); | 5438 render_view_host->OnWebkitPreferencesChanged(); |
| 5435 } | 5439 } |
| 5436 | 5440 |
| 5437 } // namespace content | 5441 } // namespace content |
| OLD | NEW |