Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_AUTOFILL_HELPER_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| 6 #define CHROME_RENDERER_AUTOFILL_HELPER_H_ | 6 #define CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 // - single text field suggestions, that we usually refer to as Autocomplete | 26 // - single text field suggestions, that we usually refer to as Autocomplete |
| 27 // - entire form fill based on one field entry, referred to as form AutoFill. | 27 // - entire form fill based on one field entry, referred to as form AutoFill. |
| 28 | 28 |
| 29 class AutoFillHelper : public RenderViewObserver, | 29 class AutoFillHelper : public RenderViewObserver, |
| 30 public PageClickListener, | 30 public PageClickListener, |
| 31 public WebKit::WebAutoFillClient { | 31 public WebKit::WebAutoFillClient { |
| 32 public: | 32 public: |
| 33 // PasswordAutocompleteManager is guaranteed to outlive AutoFillHelper. | 33 // PasswordAutocompleteManager is guaranteed to outlive AutoFillHelper. |
| 34 AutoFillHelper(RenderView* render_view, | 34 AutoFillHelper(RenderView* render_view, |
| 35 PasswordAutocompleteManager* password_autocomplete_manager); | 35 PasswordAutocompleteManager* password_autocomplete_manager); |
| 36 virtual ~AutoFillHelper(); | |
|
Nico
2011/01/27 03:55:17
we don't usually say |virtual| for destructors in
Elliot Glaysher
2011/01/27 18:48:05
Not only do we usually do this, but one of my chec
| |
| 36 | 37 |
| 37 // WebKit::WebAutoFillClient implementation. Public for tests. | 38 // WebKit::WebAutoFillClient implementation. Public for tests. |
| 38 virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node, | 39 virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node, |
| 39 const WebKit::WebString& value, | 40 const WebKit::WebString& value, |
| 40 const WebKit::WebString& label, | 41 const WebKit::WebString& label, |
| 41 int unique_id, | 42 int unique_id, |
| 42 unsigned index); | 43 unsigned index); |
| 43 virtual void didSelectAutoFillSuggestion(const WebKit::WebNode& node, | 44 virtual void didSelectAutoFillSuggestion(const WebKit::WebNode& node, |
| 44 const WebKit::WebString& value, | 45 const WebKit::WebString& value, |
| 45 const WebKit::WebString& label, | 46 const WebKit::WebString& label, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 | 148 |
| 148 // The menu index of the "AutoFill options..." menu item. | 149 // The menu index of the "AutoFill options..." menu item. |
| 149 int suggestions_options_index_; | 150 int suggestions_options_index_; |
| 150 | 151 |
| 151 ScopedRunnableMethodFactory<AutoFillHelper> method_factory_; | 152 ScopedRunnableMethodFactory<AutoFillHelper> method_factory_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(AutoFillHelper); | 154 DISALLOW_COPY_AND_ASSIGN(AutoFillHelper); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 #endif // CHROME_RENDERER_AUTOFILL_HELPER_H_ | 157 #endif // CHROME_RENDERER_AUTOFILL_HELPER_H_ |
| OLD | NEW |