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

Unified Diff: content/public/renderer/render_frame.h

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 | « components/autofill/content/renderer/page_click_tracker.cc ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/render_frame.h
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h
index a5add52ab9a7e8dd6d3aee458037695c3dffe59c..6b32dd5b8608d7390bade0b3ae9da6b5511f91bc 100644
--- a/content/public/renderer/render_frame.h
+++ b/content/public/renderer/render_frame.h
@@ -16,6 +16,7 @@
class GURL;
namespace blink {
+class WebElement;
class WebFrame;
class WebLocalFrame;
class WebNode;
@@ -62,6 +63,10 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
// Returns the associated WebFrame.
virtual blink::WebLocalFrame* GetWebFrame() = 0;
+ // Gets the focused element. If no such element exists then
+ // the element will be Null.
+ virtual blink::WebElement GetFocusedElement() const = 0;
+
// Gets WebKit related preferences associated with this frame.
virtual WebPreferences& GetWebkitPreferences() = 0;
« no previous file with comments | « components/autofill/content/renderer/page_click_tracker.cc ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698