X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcomponents%2Fautofill%2Fcore%2Fbrowser%2Fautofill_external_delegate.h;h=971af235dee3cdfaed86187fc47187865c959ca8;hb=refs%2Fchanges%2F05%2F32605%2F1;hp=672b2d63d18955557b72fa32fb7a86cbb7f57b67;hpb=004985e17e624662a4c85c76a7654039dc83f028;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/components/autofill/core/browser/autofill_external_delegate.h b/src/components/autofill/core/browser/autofill_external_delegate.h index 672b2d6..971af23 100644 --- a/src/components/autofill/core/browser/autofill_external_delegate.h +++ b/src/components/autofill/core/browser/autofill_external_delegate.h @@ -35,15 +35,14 @@ class AutofillExternalDelegate virtual ~AutofillExternalDelegate(); // AutofillPopupDelegate implementation. - virtual void OnPopupShown() OVERRIDE; - virtual void OnPopupHidden() OVERRIDE; - virtual void DidSelectSuggestion(const base::string16& value, - int identifier) OVERRIDE; - virtual void DidAcceptSuggestion(const base::string16& value, - int identifier) OVERRIDE; - virtual void RemoveSuggestion(const base::string16& value, - int identifier) OVERRIDE; - virtual void ClearPreviewedForm() OVERRIDE; + void OnPopupShown() override; + void OnPopupHidden() override; + void DidSelectSuggestion(const base::string16& value, + int identifier) override; + void DidAcceptSuggestion(const base::string16& value, + int identifier) override; + void RemoveSuggestion(const base::string16& value, int identifier) override; + void ClearPreviewedForm() override; // Records and associates a query_id with web form data. Called // when the renderer posts an Autofill query to the browser. |bounds| @@ -80,6 +79,9 @@ class AutofillExternalDelegate // values or settings. void Reset(); + // The renderer sent an IPC acknowledging an earlier ping IPC. + void OnPingAck(); + protected: base::WeakPtr GetWeakPtr(); @@ -111,6 +113,11 @@ class AutofillExternalDelegate std::vector* icons, std::vector* unique_ids); +#if defined(OS_MACOSX) && !defined(OS_IOS) + // Pings the renderer. + void PingRenderer(); +#endif // defined(OS_MACOSX) && !defined(OS_IOS) + AutofillManager* manager_; // weak. // Provides driver-level context to the shared code of the component. Must @@ -142,6 +149,10 @@ class AutofillExternalDelegate std::vector data_list_values_; std::vector data_list_labels_; + // Whether the access Address Book prompt has ever been shown for the current + // |query_form_|. This variable is only used on OSX. + bool has_shown_address_book_prompt; + base::WeakPtrFactory weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);