Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / autofill / core / browser / autofill_external_delegate.h
index 672b2d6..971af23 100644 (file)
@@ -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<AutofillExternalDelegate> GetWeakPtr();
 
@@ -111,6 +113,11 @@ class AutofillExternalDelegate
                             std::vector<base::string16>* icons,
                             std::vector<int>* 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<base::string16> data_list_values_;
   std::vector<base::string16> 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<AutofillExternalDelegate> weak_ptr_factory_;
 
   DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);