| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const std::string&)>& callback) OVERRIDE; | 60 const std::string&)>& callback) OVERRIDE; |
| 61 virtual void ShowAutofillPopup( | 61 virtual void ShowAutofillPopup( |
| 62 const gfx::RectF& element_bounds, | 62 const gfx::RectF& element_bounds, |
| 63 const std::vector<string16>& values, | 63 const std::vector<string16>& values, |
| 64 const std::vector<string16>& labels, | 64 const std::vector<string16>& labels, |
| 65 const std::vector<string16>& icons, | 65 const std::vector<string16>& icons, |
| 66 const std::vector<int>& identifiers, | 66 const std::vector<int>& identifiers, |
| 67 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; | 67 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; |
| 68 virtual void HideAutofillPopup() OVERRIDE; | 68 virtual void HideAutofillPopup() OVERRIDE; |
| 69 virtual void UpdateProgressBar(double value) OVERRIDE; | 69 virtual void UpdateProgressBar(double value) OVERRIDE; |
| 70 virtual bool IsAutoCompleteEnabled() OVERRIDE; |
| 70 | 71 |
| 71 // content::WebContentsObserver implementation. | 72 // content::WebContentsObserver implementation. |
| 72 virtual void DidNavigateMainFrame( | 73 virtual void DidNavigateMainFrame( |
| 73 const content::LoadCommittedDetails& details, | 74 const content::LoadCommittedDetails& details, |
| 74 const content::FrameNavigateParams& params) OVERRIDE; | 75 const content::FrameNavigateParams& params) OVERRIDE; |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); | 78 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); |
| 78 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; | 79 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; |
| 79 | 80 |
| 80 content::WebContents* const web_contents_; | 81 content::WebContents* const web_contents_; |
| 81 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; | 82 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; |
| 82 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; | 83 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; |
| 83 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 84 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); | 86 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace autofill | 89 } // namespace autofill |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ | 91 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ |
| OLD | NEW |