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_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_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 "chrome/browser/autofill/autofill_external_delegate.h" | 10 #include "chrome/browser/autofill/autofill_external_delegate.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 AutofillPopupViewViews* popup_view() { return popup_view_; } | 28 AutofillPopupViewViews* popup_view() { return popup_view_; } |
29 | 29 |
30 // AutofillExternalDelegate implementation. | 30 // AutofillExternalDelegate implementation. |
31 // Make protected to allow tests to override. | 31 // Make protected to allow tests to override. |
32 virtual void HideAutofillPopupInternal() OVERRIDE; | 32 virtual void HideAutofillPopupInternal() OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 // AutofillExternalDelegate implementation. | 35 // AutofillExternalDelegate implementation. |
36 virtual void OnQueryPlatformSpecific( | 36 virtual void OnQueryPlatformSpecific( |
37 int query_id, | 37 int query_id, |
38 const webkit::forms::FormData& form, | 38 const FormData& form, |
39 const webkit::forms::FormField& field, | 39 const FormFieldData& field, |
40 const gfx::Rect& bounds) OVERRIDE; | 40 const gfx::Rect& bounds) OVERRIDE; |
41 virtual void ApplyAutofillSuggestions( | 41 virtual void ApplyAutofillSuggestions( |
42 const std::vector<string16>& autofill_values, | 42 const std::vector<string16>& autofill_values, |
43 const std::vector<string16>& autofill_labels, | 43 const std::vector<string16>& autofill_labels, |
44 const std::vector<string16>& autofill_icons, | 44 const std::vector<string16>& autofill_icons, |
45 const std::vector<int>& autofill_unique_ids) OVERRIDE; | 45 const std::vector<int>& autofill_unique_ids) OVERRIDE; |
46 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 46 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
47 | 47 |
48 // Create a valid view to display the autofill results if one doesn't | 48 // Create a valid view to display the autofill results if one doesn't |
49 // currently exist. | 49 // currently exist. |
50 void CreateViewIfNeeded(); | 50 void CreateViewIfNeeded(); |
51 | 51 |
52 // We use a raw pointer here because even though we usually create the view, | 52 // We use a raw pointer here because even though we usually create the view, |
53 // its widget handles deleting it. | 53 // its widget handles deleting it. |
54 AutofillPopupViewViews* popup_view_; | 54 AutofillPopupViewViews* popup_view_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateViews); | 56 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateViews); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_ | 59 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_VIEWS_H_ |
OLD | NEW |