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

Side by Side Diff: components/autofill/core/browser/test_autofill_driver.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: Rebase and update code as per Ilya's comments Created 6 years, 9 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_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 RendererFormDataAction action, 33 RendererFormDataAction action,
34 const FormData& data) OVERRIDE; 34 const FormData& data) OVERRIDE;
35 virtual void SendAutofillTypePredictionsToRenderer( 35 virtual void SendAutofillTypePredictionsToRenderer(
36 const std::vector<FormStructure*>& forms) OVERRIDE; 36 const std::vector<FormStructure*>& forms) OVERRIDE;
37 virtual void RendererShouldAcceptDataListSuggestion( 37 virtual void RendererShouldAcceptDataListSuggestion(
38 const base::string16& value) OVERRIDE; 38 const base::string16& value) OVERRIDE;
39 virtual void RendererShouldAcceptPasswordAutofillSuggestion( 39 virtual void RendererShouldAcceptPasswordAutofillSuggestion(
40 const base::string16& username) OVERRIDE; 40 const base::string16& username) OVERRIDE;
41 virtual void RendererShouldClearFilledForm() OVERRIDE; 41 virtual void RendererShouldClearFilledForm() OVERRIDE;
42 virtual void RendererShouldClearPreviewedForm() OVERRIDE; 42 virtual void RendererShouldClearPreviewedForm() OVERRIDE;
43 virtual void RendererShouldSetNodeText(const base::string16& value) OVERRIDE; 43 virtual void RendererShouldFillFieldWithValue(
44 const base::string16& value) OVERRIDE;
45 virtual void RendererShouldPreviewFieldWithValue(
46 const base::string16& value) OVERRIDE;
44 47
45 // Methods that tests can use to specialize functionality. 48 // Methods that tests can use to specialize functionality.
46 49
47 // Sets the URL request context for this instance. |url_request_context| 50 // Sets the URL request context for this instance. |url_request_context|
48 // should outlive this instance. 51 // should outlive this instance.
49 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); 52 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context);
50 53
51 private: 54 private:
52 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; 55 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_;
53 net::URLRequestContextGetter* url_request_context_; 56 net::URLRequestContextGetter* url_request_context_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); 58 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
56 }; 59 };
57 60
58 } // namespace autofill 61 } // namespace autofill
59 62
60 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 63 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_popup_delegate.h ('k') | components/autofill/core/browser/test_autofill_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698