Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.h

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: add a check that disappeared during a merge. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Exposed for testing. 79 // Exposed for testing.
79 AutofillDialogControllerImpl* GetDialogControllerForTesting() { 80 AutofillDialogControllerImpl* GetDialogControllerForTesting() {
80 return dialog_controller_.get(); 81 return dialog_controller_.get();
81 } 82 }
82 83
83 private: 84 private:
84 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); 85 explicit TabAutofillManagerDelegate(content::WebContents* web_contents);
85 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; 86 friend class content::WebContentsUserData<TabAutofillManagerDelegate>;
86 87
87 content::WebContents* const web_contents_; 88 content::WebContents* const web_contents_;
88 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_; 89 base::WeakPtr<AutofillDialogControllerImpl> dialog_controller_;
89 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_; 90 base::WeakPtr<AutocheckoutBubble> autocheckout_bubble_;
90 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 91 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); 93 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate);
93 }; 94 };
94 95
95 } // namespace autofill 96 } // namespace autofill
96 97
97 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 98 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/renderer/aw_content_renderer_client.cc ('k') | chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698