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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2623483003: Support tracking focused node element for OOPIFs. (Closed)
Patch Set: Added the missing forward declaration Created 3 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
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index e9667981ec6ec0426901568d8db38a04f3068e54..f0f8bc3a0969a5e72e2afb15d99ba49d1e8df889 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -567,12 +567,18 @@ class CONTENT_EXPORT RenderFrameHostImpl
void SetHasReceivedUserGesture();
+ void ClearFocusedElement();
+
// PlzNavigate: returns the LoFi state of the last successful navigation that
// made a network request.
LoFiState last_navigation_lofi_state() const {
return last_navigation_lofi_state_;
}
+ bool has_focused_editable_element() const {
+ return has_focused_editable_element_;
+ }
+
protected:
friend class RenderFrameHostFactory;
@@ -699,6 +705,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
void OnSelectionChanged(const base::string16& text,
uint32_t offset,
const gfx::Range& range);
+ void OnFocusedNodeChanged(bool is_editable_element,
+ const gfx::Rect& bounds_in_frame_widget);
#if defined(USE_EXTERNAL_POPUP_MENU)
void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
@@ -1049,6 +1057,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
// requests should be queued.
bool waiting_for_init_;
+ // If true then this frame's document has a focused element which is editable.
+ bool has_focused_editable_element_;
+
typedef std::pair<CommonNavigationParams, BeginNavigationParams>
PendingNavigation;
std::unique_ptr<PendingNavigation> pendinging_navigate_;
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698