Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_base.h |
| diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h |
| index ce60e771273c9431ac86f9af584a7366e53c6b00..2a45121e8fe5e9c6d34386105d75b9a2bb807121 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_base.h |
| +++ b/content/browser/renderer_host/render_widget_host_view_base.h |
| @@ -72,6 +72,7 @@ class SyntheticGesture; |
| class SyntheticGestureTarget; |
| class TextInputManager; |
| class WebCursor; |
| +struct FormFieldData; |
| struct NativeWebKeyboardEvent; |
| struct TextInputState; |
| @@ -94,6 +95,7 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| void SetBackgroundColorToDefault() final; |
| bool GetBackgroundOpaque() override; |
| ui::TextInputClient* GetTextInputClient() override; |
| + void GetFocusedFormFieldData(ExtractFormFieldDataCallback& reply) override; |
| void WasUnOccluded() override {} |
| void WasOccluded() override {} |
| bool IsShowingContextMenu() const override; |
| @@ -313,6 +315,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| const gfx::Range& range, |
| const std::vector<gfx::Rect>& character_bounds); |
| + // This method contains response for the FetchTextInputInfo request. |
| + void OnFocusedFormFieldDataReply(int request_id, |
| + const FormFieldData& field_data); |
| + |
| //---------------------------------------------------------------------------- |
| // The following pure virtual methods are implemented by derived classes. |
| @@ -495,6 +501,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| uint32_t renderer_frame_number_; |
| + using FormFieldDataReplyMap = std::map<int, ExtractFormFieldDataCallback>; |
|
Charlie Reis
2016/11/04 20:59:46
Style nit: I think this belongs at the top of the
shaktisahu
2016/11/11 01:15:03
Done.
|
| + FormFieldDataReplyMap extract_form_field_data_callbacks_; |
| + |
| base::OneShotTimer flush_input_timer_; |
| base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |