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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller.h

Issue 14821005: [RFP, Autofill] Switching dialog field identification to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const string16& value) const = 0; 127 const string16& value) const = 0;
128 128
129 // Decides whether the combination of all |inputs| is valid, returns a 129 // Decides whether the combination of all |inputs| is valid, returns a
130 // vector of all invalid fields. 130 // vector of all invalid fields.
131 virtual std::vector<AutofillFieldType> InputsAreValid( 131 virtual std::vector<AutofillFieldType> InputsAreValid(
132 const DetailOutputMap& inputs, ValidationType validation_type) const = 0; 132 const DetailOutputMap& inputs, ValidationType validation_type) const = 0;
133 133
134 // Called when the user changes the contents of a text field or activates it 134 // Called when the user changes the contents of a text field or activates it
135 // (by focusing and then clicking it). |was_edit| is true when the function 135 // (by focusing and then clicking it). |was_edit| is true when the function
136 // was called in response to the user editing the text field. 136 // was called in response to the user editing the text field.
137 virtual void UserEditedOrActivatedInput(const DetailInput* input, 137 virtual void UserEditedOrActivatedInput(DialogSection section,
138 AutofillFieldType type,
138 gfx::NativeView parent_view, 139 gfx::NativeView parent_view,
139 const gfx::Rect& content_bounds, 140 const gfx::Rect& content_bounds,
140 const string16& field_contents, 141 const string16& field_contents,
141 bool was_edit) = 0; 142 bool was_edit) = 0;
142 143
143 // The view forwards keypresses in text inputs. Returns true if there should 144 // The view forwards keypresses in text inputs. Returns true if there should
144 // be no further processing of the event. 145 // be no further processing of the event.
145 virtual bool HandleKeyPressEventInInput( 146 virtual bool HandleKeyPressEventInInput(
146 const content::NativeWebKeyboardEvent& event) = 0; 147 const content::NativeWebKeyboardEvent& event) = 0;
147 148
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // The web contents that prompted the dialog. 184 // The web contents that prompted the dialog.
184 virtual content::WebContents* web_contents() = 0; 185 virtual content::WebContents* web_contents() = 0;
185 186
186 protected: 187 protected:
187 virtual ~AutofillDialogController(); 188 virtual ~AutofillDialogController();
188 }; 189 };
189 190
190 } // namespace autofill 191 } // namespace autofill
191 192
192 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 193 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698