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; |