Chromium Code Reviews| Index: content/public/browser/render_widget_host_view.h |
| diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h |
| index ff3127b69e5307fec8eed08e388902514aeeb873..19e40c4396cc9c857de8e088edff1756dfff7e02 100644 |
| --- a/content/public/browser/render_widget_host_view.h |
| +++ b/content/public/browser/render_widget_host_view.h |
| @@ -7,6 +7,7 @@ |
| #include <memory> |
| +#include "base/callback.h" |
| #include "base/strings/string16.h" |
| #include "build/build_config.h" |
| #include "content/common/content_export.h" |
| @@ -31,6 +32,9 @@ namespace content { |
| class RenderWidgetHost; |
| class RenderWidgetHostViewFrameSubscriber; |
| +struct FormFieldData; |
| + |
| +using ExtractFormFieldDataCallback = base::Callback<void(const FormFieldData&)>; |
|
Charlie Reis
2016/11/04 20:59:46
nit: Drop "Extract" from the name? Sounds kind of
shaktisahu
2016/11/11 01:15:03
Done. Now it's called FormFieldDataCallback.
|
| // RenderWidgetHostView is an interface implemented by an object that acts as |
| // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its |
| @@ -91,6 +95,9 @@ class CONTENT_EXPORT RenderWidgetHostView { |
| // text input system. |
| virtual ui::TextInputClient* GetTextInputClient() = 0; |
| + // Retrieves the text input info associated with the current form field. |
| + virtual void GetFocusedFormFieldData(ExtractFormFieldDataCallback& reply) = 0; |
| + |
| // Set focus to the associated View component. |
| virtual void Focus() = 0; |
| // Returns true if the View currently has the focus. |