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

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

Issue 13625002: Change the behavior of the [X] Save details to Wallet checkbox notification to: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 | Annotate | Revision Log
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_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const DetailOutputMap& inputs, ValidationType validation_type) OVERRIDE; 131 const DetailOutputMap& inputs, ValidationType validation_type) OVERRIDE;
132 virtual void UserEditedOrActivatedInput(const DetailInput* input, 132 virtual void UserEditedOrActivatedInput(const DetailInput* input,
133 DialogSection section, 133 DialogSection section,
134 gfx::NativeView parent_view, 134 gfx::NativeView parent_view,
135 const gfx::Rect& content_bounds, 135 const gfx::Rect& content_bounds,
136 const string16& field_contents, 136 const string16& field_contents,
137 bool was_edit) OVERRIDE; 137 bool was_edit) OVERRIDE;
138 virtual bool HandleKeyPressEventInInput( 138 virtual bool HandleKeyPressEventInInput(
139 const content::NativeWebKeyboardEvent& event) OVERRIDE; 139 const content::NativeWebKeyboardEvent& event) OVERRIDE;
140 virtual void FocusMoved() OVERRIDE; 140 virtual void FocusMoved() OVERRIDE;
141 virtual void CheckboxStateChanged(DialogNotification::Type type,
142 bool checked) OVERRIDE;
141 virtual void ViewClosed() OVERRIDE; 143 virtual void ViewClosed() OVERRIDE;
142 virtual std::vector<DialogNotification> CurrentNotifications() const OVERRIDE; 144 virtual std::vector<DialogNotification> CurrentNotifications() const OVERRIDE;
143 virtual void StartSignInFlow() OVERRIDE; 145 virtual void StartSignInFlow() OVERRIDE;
144 virtual void EndSignInFlow() OVERRIDE; 146 virtual void EndSignInFlow() OVERRIDE;
145 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; 147 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE;
146 virtual void OnCancel() OVERRIDE; 148 virtual void OnCancel() OVERRIDE;
147 virtual void OnAccept() OVERRIDE; 149 virtual void OnAccept() OVERRIDE;
148 virtual Profile* profile() OVERRIDE; 150 virtual Profile* profile() OVERRIDE;
149 virtual content::WebContents* web_contents() OVERRIDE; 151 virtual content::WebContents* web_contents() OVERRIDE;
150 152
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void SuggestionsUpdated(); 266 void SuggestionsUpdated();
265 267
266 // Returns whether |profile| is complete, i.e. can fill out all the relevant 268 // Returns whether |profile| is complete, i.e. can fill out all the relevant
267 // address info. Incomplete profiles will not be displayed in the dropdown 269 // address info. Incomplete profiles will not be displayed in the dropdown
268 // menu. 270 // menu.
269 bool IsCompleteProfile(const AutofillProfile& profile); 271 bool IsCompleteProfile(const AutofillProfile& profile);
270 272
271 // Whether the user's wallet items have at least one address and instrument. 273 // Whether the user's wallet items have at least one address and instrument.
272 bool HasCompleteWallet() const; 274 bool HasCompleteWallet() const;
273 275
274 // Starts fetching the wallet items. 276 // Starts fetching the wallet items from Online Wallet.
275 void StartFetchingWalletItems(); 277 void GetWalletItems();
276 278
277 // Refreshes the model on Wallet or sign-in state update. 279 // Refreshes the model on Wallet or sign-in state update.
278 void OnWalletOrSigninUpdate(); 280 void OnWalletOrSigninUpdate();
279 281
280 // Should be called on the Wallet sign-in error. 282 // Should be called on the Wallet sign-in error.
281 void OnWalletSigninError(); 283 void OnWalletSigninError();
282 284
283 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if 285 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if
284 // they have not already been calculated. 286 // they have not already been calculated.
285 void EnsureLegalDocumentsText(); 287 void EnsureLegalDocumentsText();
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 480
479 // For logging UMA metrics. 481 // For logging UMA metrics.
480 const AutofillMetrics& metric_logger_; 482 const AutofillMetrics& metric_logger_;
481 base::Time dialog_shown_timestamp_; 483 base::Time dialog_shown_timestamp_;
482 base::Time autocheckout_started_timestamp_; 484 base::Time autocheckout_started_timestamp_;
483 AutofillMetrics::DialogInitialUserStateMetric initial_user_state_; 485 AutofillMetrics::DialogInitialUserStateMetric initial_user_state_;
484 486
485 // Whether this is an Autocheckout or a requestAutocomplete dialog. 487 // Whether this is an Autocheckout or a requestAutocomplete dialog.
486 const DialogType dialog_type_; 488 const DialogType dialog_type_;
487 489
490 // Whether this is the first time this profile has seen the Autofill dialog.
491 bool is_first_run_;
492
488 // True after the user first accepts the dialog and presses "Submit". May 493 // True after the user first accepts the dialog and presses "Submit". May
489 // continue to be true while processing required actions. 494 // continue to be true while processing required actions.
490 bool is_submitting_; 495 bool is_submitting_;
491 496
492 // Whether or not an Autocheckout flow is running. 497 // Whether or not an Autocheckout flow is running.
493 bool autocheckout_is_running_; 498 bool autocheckout_is_running_;
494 499
495 // Whether or not there was an error in the Autocheckout flow. 500 // Whether or not there was an error in the Autocheckout flow.
496 bool had_autocheckout_error_; 501 bool had_autocheckout_error_;
497 502
498 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 503 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
499 }; 504 };
500 505
501 } // namespace autofill 506 } // namespace autofill
502 507
503 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 508 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698