OLD | NEW |
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 CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 gfx::NativeView parent_view, | 162 gfx::NativeView parent_view, |
163 const gfx::Rect& content_bounds, | 163 const gfx::Rect& content_bounds, |
164 const base::string16& field_contents, | 164 const base::string16& field_contents, |
165 bool was_edit) = 0; | 165 bool was_edit) = 0; |
166 | 166 |
167 // The view forwards keypresses in text inputs. Returns true if there should | 167 // The view forwards keypresses in text inputs. Returns true if there should |
168 // be no further processing of the event. | 168 // be no further processing of the event. |
169 virtual bool HandleKeyPressEventInInput( | 169 virtual bool HandleKeyPressEventInInput( |
170 const content::NativeWebKeyboardEvent& event) = 0; | 170 const content::NativeWebKeyboardEvent& event) = 0; |
171 | 171 |
| 172 // Called when a user selects an item in a combobox. |
| 173 virtual void ComboboxItemSelected(ServerFieldType type, int index) = 0; |
| 174 |
172 // Called when focus has changed position within the view. | 175 // Called when focus has changed position within the view. |
173 virtual void FocusMoved() = 0; | 176 virtual void FocusMoved() = 0; |
174 | 177 |
175 // Whether the view should show a validation error bubble. | 178 // Whether the view should show a validation error bubble. |
176 virtual bool ShouldShowErrorBubble() const = 0; | 179 virtual bool ShouldShowErrorBubble() const = 0; |
177 | 180 |
178 // Miscellany ---------------------------------------------------------------- | 181 // Miscellany ---------------------------------------------------------------- |
179 | 182 |
180 // Called when the view has been closed. | 183 // Called when the view has been closed. |
181 virtual void ViewClosed() = 0; | 184 virtual void ViewClosed() = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // The web contents that prompted the dialog. | 216 // The web contents that prompted the dialog. |
214 virtual content::WebContents* GetWebContents() = 0; | 217 virtual content::WebContents* GetWebContents() = 0; |
215 | 218 |
216 protected: | 219 protected: |
217 virtual ~AutofillDialogViewDelegate(); | 220 virtual ~AutofillDialogViewDelegate(); |
218 }; | 221 }; |
219 | 222 |
220 } // namespace autofill | 223 } // namespace autofill |
221 | 224 |
222 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 225 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |