Chromium Code Reviews| 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 2b6952c1656ec8b8a9dcd7e367dfd0563e30d622..83470c4ac2f6d5aaf7dc7648dfeb078cf09ef2de 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.h |
| +++ b/content/browser/frame_host/render_frame_host_impl.h |
| @@ -572,12 +572,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; |
| @@ -710,6 +716,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); |
| @@ -1073,6 +1081,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
| // requests should be queued. |
| bool waiting_for_init_; |
| + // If there then this frame's document has a focused element which editable. |
|
ncarter (slow)
2016/12/16 19:17:21
"If there" -> "If true"
"which editable" -> "whic
EhsanK
2016/12/20 16:39:10
Thanks! Done.
|
| + bool has_focused_editable_element_; |
| + |
| typedef std::pair<CommonNavigationParams, BeginNavigationParams> |
| PendingNavigation; |
| std::unique_ptr<PendingNavigation> pendinging_navigate_; |