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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate.h

Issue 9432029: GTK Keyboard Support for New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing switch case Created 8 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 (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_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int query_id, 54 int query_id,
55 const std::vector<string16>& autofill_values, 55 const std::vector<string16>& autofill_values,
56 const std::vector<string16>& autofill_labels, 56 const std::vector<string16>& autofill_labels,
57 const std::vector<string16>& autofill_icons, 57 const std::vector<string16>& autofill_icons,
58 const std::vector<int>& autofill_unique_ids); 58 const std::vector<int>& autofill_unique_ids);
59 59
60 // Inform the delegate that the text field editing has ended, this is 60 // Inform the delegate that the text field editing has ended, this is
61 // used to help record the metrics of when a new popup is shown. 61 // used to help record the metrics of when a new popup is shown.
62 void DidEndTextFieldEditing(); 62 void DidEndTextFieldEditing();
63 63
64 // Inform the delegate that an autofill suggestion have been chosen. 64 // Inform the delegate that an autofill suggestion have been chosen. Returns
65 void DidAcceptAutofillSuggestions(const string16& value, 65 // true if the suggestion was selected.
66 bool DidAcceptAutofillSuggestions(const string16& value,
66 int unique_id, 67 int unique_id,
67 unsigned index); 68 unsigned index);
68 69
69 // Informs the delegate that the Autofill previewed form should be cleared. 70 // Informs the delegate that the Autofill previewed form should be cleared.
70 virtual void ClearPreviewedForm(); 71 virtual void ClearPreviewedForm();
71 72
72 // Hide the Autofill poup. 73 // Hide the Autofill poup.
73 virtual void HideAutofillPopup(); 74 virtual void HideAutofillPopup();
74 75
75 // Platforms that wish to implement an external Autofill delegate 76 // Platforms that wish to implement an external Autofill delegate
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // The menu index of the "Clear" menu item. 130 // The menu index of the "Clear" menu item.
130 int suggestions_clear_index_; 131 int suggestions_clear_index_;
131 132
132 // The menu index of the "Autofill options..." menu item. 133 // The menu index of the "Autofill options..." menu item.
133 int suggestions_options_index_; 134 int suggestions_options_index_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 136 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 139 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698