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

Side by Side Diff: components/autofill/content/browser/autofill_driver_impl.h

Issue 148413002: Add "previewing on hover" support for single-field autocomplete input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code as per review comments Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const FormData& data) OVERRIDE; 53 const FormData& data) OVERRIDE;
54 virtual void SendAutofillTypePredictionsToRenderer( 54 virtual void SendAutofillTypePredictionsToRenderer(
55 const std::vector<FormStructure*>& forms) OVERRIDE; 55 const std::vector<FormStructure*>& forms) OVERRIDE;
56 virtual void RendererShouldAcceptDataListSuggestion( 56 virtual void RendererShouldAcceptDataListSuggestion(
57 const base::string16& value) OVERRIDE; 57 const base::string16& value) OVERRIDE;
58 virtual void RendererShouldAcceptPasswordAutofillSuggestion( 58 virtual void RendererShouldAcceptPasswordAutofillSuggestion(
59 const base::string16& username) OVERRIDE; 59 const base::string16& username) OVERRIDE;
60 virtual void RendererShouldClearFilledForm() OVERRIDE; 60 virtual void RendererShouldClearFilledForm() OVERRIDE;
61 virtual void RendererShouldClearPreviewedForm() OVERRIDE; 61 virtual void RendererShouldClearPreviewedForm() OVERRIDE;
62 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE; 62 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE;
63 virtual void RendererShouldPreviewAutoCompleteNode(
64 const base::string16& value) OVERRIDE;
Ilya Sherman 2014/02/22 05:59:51 nit: Let's name this method "RendererShouldPreview
ziran.sun 2014/02/27 15:38:11 Done.
ziran.sun 2014/02/27 15:38:11 Done.
63 65
64 // Returns the WebContents with which this instance is associated. 66 // Returns the WebContents with which this instance is associated.
65 content::WebContents* GetWebContents(); 67 content::WebContents* GetWebContents();
66 68
67 AutofillExternalDelegate* autofill_external_delegate() { 69 AutofillExternalDelegate* autofill_external_delegate() {
68 return &autofill_external_delegate_; 70 return &autofill_external_delegate_;
69 } 71 }
70 72
71 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 73 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
72 74
(...skipping 27 matching lines...) Expand all
100 // case where the Autofill native UI is enabled. 102 // case where the Autofill native UI is enabled.
101 AutofillExternalDelegate autofill_external_delegate_; 103 AutofillExternalDelegate autofill_external_delegate_;
102 104
103 // Driver for the interactive autocomplete dialog. 105 // Driver for the interactive autocomplete dialog.
104 RequestAutocompleteManager request_autocomplete_manager_; 106 RequestAutocompleteManager request_autocomplete_manager_;
105 }; 107 };
106 108
107 } // namespace autofill 109 } // namespace autofill
108 110
109 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ 111 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698