| OLD | NEW |
| 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 6726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6737 } | 6737 } |
| 6738 | 6738 |
| 6739 blink::WebPageVisibilityState RenderFrameImpl::GetVisibilityState() const { | 6739 blink::WebPageVisibilityState RenderFrameImpl::GetVisibilityState() const { |
| 6740 return visibilityState(); | 6740 return visibilityState(); |
| 6741 } | 6741 } |
| 6742 | 6742 |
| 6743 bool RenderFrameImpl::IsBrowserSideNavigationPending() { | 6743 bool RenderFrameImpl::IsBrowserSideNavigationPending() { |
| 6744 return browser_side_navigation_pending_; | 6744 return browser_side_navigation_pending_; |
| 6745 } | 6745 } |
| 6746 | 6746 |
| 6747 base::SingleThreadTaskRunner* RenderFrameImpl::GetTimerTaskRunner() { |
| 6748 return GetWebFrame()->timerTaskRunner(); |
| 6749 } |
| 6750 |
| 6751 base::SingleThreadTaskRunner* RenderFrameImpl::GetLoadingTaskRunner() { |
| 6752 return GetWebFrame()->loadingTaskRunner(); |
| 6753 } |
| 6754 |
| 6755 base::SingleThreadTaskRunner* RenderFrameImpl::GetUnthrottledTaskRunner() { |
| 6756 return GetWebFrame()->unthrottledTaskRunner(); |
| 6757 } |
| 6758 |
| 6747 blink::WebPlugin* RenderFrameImpl::GetWebPluginForFind() { | 6759 blink::WebPlugin* RenderFrameImpl::GetWebPluginForFind() { |
| 6748 if (frame_->document().isPluginDocument()) | 6760 if (frame_->document().isPluginDocument()) |
| 6749 return frame_->document().to<WebPluginDocument>().plugin(); | 6761 return frame_->document().to<WebPluginDocument>().plugin(); |
| 6750 | 6762 |
| 6751 #if BUILDFLAG(ENABLE_PLUGINS) | 6763 #if BUILDFLAG(ENABLE_PLUGINS) |
| 6752 if (plugin_find_handler_) | 6764 if (plugin_find_handler_) |
| 6753 return plugin_find_handler_->container()->plugin(); | 6765 return plugin_find_handler_->container()->plugin(); |
| 6754 #endif | 6766 #endif |
| 6755 | 6767 |
| 6756 return nullptr; | 6768 return nullptr; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6874 // event target. Potentially a Pepper plugin will receive the event. | 6886 // event target. Potentially a Pepper plugin will receive the event. |
| 6875 // In order to tell whether a plugin gets the last mouse event and which it | 6887 // In order to tell whether a plugin gets the last mouse event and which it |
| 6876 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6888 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6877 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6889 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6878 // |pepper_last_mouse_event_target_|. | 6890 // |pepper_last_mouse_event_target_|. |
| 6879 pepper_last_mouse_event_target_ = nullptr; | 6891 pepper_last_mouse_event_target_ = nullptr; |
| 6880 #endif | 6892 #endif |
| 6881 } | 6893 } |
| 6882 | 6894 |
| 6883 } // namespace content | 6895 } // namespace content |
| OLD | NEW |