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

Unified Diff: content/renderer/render_view_impl.cc

Issue 866633002: partial PageClickTracker migration to RenderFrameObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make test happy Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 6f5017dfb27f58028d73ae7713385361c7d4a576..dadb2a2dfb31a9957850962de906ff054d2d596d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2440,19 +2440,6 @@ blink::WebView* RenderViewImpl::GetWebView() {
return webview();
}
-blink::WebElement RenderViewImpl::GetFocusedElement() const {
- if (!webview())
- return WebElement();
- WebFrame* focused_frame = webview()->focusedFrame();
- if (focused_frame) {
- WebDocument doc = focused_frame->document();
- if (!doc.isNull())
- return doc.focusedElement();
- }
-
- return WebElement();
-}
-
bool RenderViewImpl::IsEditableNode(const WebNode& node) const {
if (node.isNull())
return false;
@@ -2481,13 +2468,6 @@ bool RenderViewImpl::IsEditableNode(const WebNode& node) const {
return false;
}
-bool RenderViewImpl::NodeContainsPoint(const WebNode& node,
- const gfx::Point& point) const {
- blink::WebHitTestResult hit_test =
- webview()->hitTestResultAt(WebPoint(point.x(), point.y()));
- return node.containsIncludingShadowDOM(hit_test.node());
-}
-
bool RenderViewImpl::ShouldDisplayScrollbars(int width, int height) const {
return (!send_preferred_size_changes_ ||
(disable_scrollbars_size_limit_.width() <= width ||
@@ -2520,6 +2500,19 @@ void RenderViewImpl::SyncNavigationState() {
SendUpdateState(history_controller_->GetCurrentEntry());
}
+blink::WebElement RenderViewImpl::GetFocusedElement() const {
+ if (!webview())
+ return WebElement();
+ WebFrame* focused_frame = webview()->focusedFrame();
+ if (focused_frame) {
+ WebDocument doc = focused_frame->document();
+ if (!doc.isNull())
+ return doc.focusedElement();
+ }
+
+ return WebElement();
+}
+
blink::WebPlugin* RenderViewImpl::GetWebPluginForFind() {
if (!webview())
return NULL;
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698