| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const std::vector<string16>& labels, | 57 const std::vector<string16>& labels, |
| 58 const std::vector<string16>& icons, | 58 const std::vector<string16>& icons, |
| 59 const std::vector<int>& identifiers, | 59 const std::vector<int>& identifiers, |
| 60 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; | 60 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; |
| 61 virtual void UpdateAutofillPopupDataListValues( | 61 virtual void UpdateAutofillPopupDataListValues( |
| 62 const std::vector<base::string16>& values, | 62 const std::vector<base::string16>& values, |
| 63 const std::vector<base::string16>& labels) OVERRIDE; | 63 const std::vector<base::string16>& labels) OVERRIDE; |
| 64 virtual void HideAutofillPopup() OVERRIDE; | 64 virtual void HideAutofillPopup() OVERRIDE; |
| 65 virtual bool IsAutocompleteEnabled() OVERRIDE; | 65 virtual bool IsAutocompleteEnabled() OVERRIDE; |
| 66 | 66 |
| 67 virtual void DetectAccountCreationForms( |
| 68 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; |
| 69 |
| 67 // content::WebContentsObserver implementation. | 70 // content::WebContentsObserver implementation. |
| 68 virtual void DidNavigateMainFrame( | 71 virtual void DidNavigateMainFrame( |
| 69 const content::LoadCommittedDetails& details, | 72 const content::LoadCommittedDetails& details, |
| 70 const content::FrameNavigateParams& params) OVERRIDE; | 73 const content::FrameNavigateParams& params) OVERRIDE; |
| 71 virtual void WebContentsDestroyed( | 74 virtual void WebContentsDestroyed( |
| 72 content::WebContents* web_contents) OVERRIDE; | 75 content::WebContents* web_contents) OVERRIDE; |
| 73 virtual void WasShown() OVERRIDE; | 76 virtual void WasShown() OVERRIDE; |
| 74 | 77 |
| 75 // Exposed for testing. | 78 // Exposed for testing. |
| 76 AutofillDialogController* GetDialogControllerForTesting() { | 79 AutofillDialogController* GetDialogControllerForTesting() { |
| 77 return dialog_controller_.get(); | 80 return dialog_controller_.get(); |
| 78 } | 81 } |
| 79 | 82 |
| 80 private: | 83 private: |
| 81 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); | 84 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); |
| 82 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; | 85 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; |
| 83 | 86 |
| 84 content::WebContents* const web_contents_; | 87 content::WebContents* const web_contents_; |
| 85 base::WeakPtr<AutofillDialogController> dialog_controller_; | 88 base::WeakPtr<AutofillDialogController> dialog_controller_; |
| 86 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 89 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace autofill | 94 } // namespace autofill |
| 92 | 95 |
| 93 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 96 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |