Chromium Code Reviews| 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 4238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4249 } | 4249 } |
| 4250 | 4250 |
| 4251 bool WebContentsImpl::HideDownloadUI() const { | 4251 bool WebContentsImpl::HideDownloadUI() const { |
| 4252 return is_overlay_content_; | 4252 return is_overlay_content_; |
| 4253 } | 4253 } |
| 4254 | 4254 |
| 4255 bool WebContentsImpl::HasPersistentVideo() const { | 4255 bool WebContentsImpl::HasPersistentVideo() const { |
| 4256 return has_persistent_video_; | 4256 return has_persistent_video_; |
| 4257 } | 4257 } |
| 4258 | 4258 |
| 4259 bool WebContentsImpl::HasActiveEffectivelyFullscreenVideo() const { | |
| 4260 return media_web_contents_observer_->HasActiveEffectivelyFullscreenVideo(); | |
|
Charlie Reis
2017/02/23 00:18:08
I found this pretty weird at first glance-- that W
mlamouri (slow - plz ping)
2017/02/23 13:34:19
Ack
| |
| 4261 } | |
| 4262 | |
| 4259 bool WebContentsImpl::IsFocusedElementEditable() { | 4263 bool WebContentsImpl::IsFocusedElementEditable() { |
| 4260 RenderFrameHostImpl* frame = GetFocusedFrame(); | 4264 RenderFrameHostImpl* frame = GetFocusedFrame(); |
| 4261 return frame && frame->has_focused_editable_element(); | 4265 return frame && frame->has_focused_editable_element(); |
| 4262 } | 4266 } |
| 4263 | 4267 |
| 4264 void WebContentsImpl::ClearFocusedElement() { | 4268 void WebContentsImpl::ClearFocusedElement() { |
| 4265 if (auto* frame = GetFocusedFrame()) | 4269 if (auto* frame = GetFocusedFrame()) |
| 4266 frame->ClearFocusedElement(); | 4270 frame->ClearFocusedElement(); |
| 4267 } | 4271 } |
| 4268 | 4272 |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5429 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); | 5433 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); |
| 5430 if (!render_view_host) | 5434 if (!render_view_host) |
| 5431 continue; | 5435 continue; |
| 5432 render_view_host_set.insert(render_view_host); | 5436 render_view_host_set.insert(render_view_host); |
| 5433 } | 5437 } |
| 5434 for (RenderViewHost* render_view_host : render_view_host_set) | 5438 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5435 render_view_host->OnWebkitPreferencesChanged(); | 5439 render_view_host->OnWebkitPreferencesChanged(); |
| 5436 } | 5440 } |
| 5437 | 5441 |
| 5438 } // namespace content | 5442 } // namespace content |
| OLD | NEW |