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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 bool was_edit) = 0; | 143 bool was_edit) = 0; |
144 | 144 |
145 // The view forwards keypresses in text inputs. Returns true if there should | 145 // The view forwards keypresses in text inputs. Returns true if there should |
146 // be no further processing of the event. | 146 // be no further processing of the event. |
147 virtual bool HandleKeyPressEventInInput( | 147 virtual bool HandleKeyPressEventInInput( |
148 const content::NativeWebKeyboardEvent& event) = 0; | 148 const content::NativeWebKeyboardEvent& event) = 0; |
149 | 149 |
150 // Called when focus has changed position within the view. | 150 // Called when focus has changed position within the view. |
151 virtual void FocusMoved() = 0; | 151 virtual void FocusMoved() = 0; |
152 | 152 |
153 // Called when a checkbox in the notification area has changed its state. | |
154 virtual void CheckboxStateChanged(DialogNotification::Type type, | |
Evan Stade
2013/04/08 18:07:05
nit: can you call this NotificationCheckboxStateCh
Dan Beam
2013/04/09 01:08:07
Done.
| |
155 bool checked) = 0; | |
156 | |
153 // Miscellany ---------------------------------------------------------------- | 157 // Miscellany ---------------------------------------------------------------- |
154 | 158 |
155 // Called when the view has been closed. | 159 // Called when the view has been closed. |
156 virtual void ViewClosed() = 0; | 160 virtual void ViewClosed() = 0; |
157 | 161 |
158 // Returns dialog notifications that the view should currently be showing in | 162 // Returns dialog notifications that the view should currently be showing in |
159 // order from top to bottom. | 163 // order from top to bottom. |
160 virtual std::vector<DialogNotification> CurrentNotifications() const = 0; | 164 virtual std::vector<DialogNotification> CurrentNotifications() const = 0; |
161 | 165 |
162 // Begins the flow to sign into Wallet. | 166 // Begins the flow to sign into Wallet. |
(...skipping 18 matching lines...) Expand all Loading... | |
181 // The web contents that prompted the dialog. | 185 // The web contents that prompted the dialog. |
182 virtual content::WebContents* web_contents() = 0; | 186 virtual content::WebContents* web_contents() = 0; |
183 | 187 |
184 protected: | 188 protected: |
185 virtual ~AutofillDialogController(); | 189 virtual ~AutofillDialogController(); |
186 }; | 190 }; |
187 | 191 |
188 } // namespace autofill | 192 } // namespace autofill |
189 | 193 |
190 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 194 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |