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