| 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_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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 // Returns whether Wallet is the current data source. Exposed for testing. | 262 // Returns whether Wallet is the current data source. Exposed for testing. |
| 263 virtual bool IsPayingWithWallet() const; | 263 virtual bool IsPayingWithWallet() const; |
| 264 | 264 |
| 265 // Exposed and virtual for testing. | 265 // Exposed and virtual for testing. |
| 266 virtual bool IsFirstRun() const; | 266 virtual bool IsFirstRun() const; |
| 267 | 267 |
| 268 // Opens the given URL in a new foreground tab. | 268 // Opens the given URL in a new foreground tab. |
| 269 virtual void OpenTabWithUrl(const GURL& url); | 269 virtual void OpenTabWithUrl(const GURL& url); |
| 270 | 270 |
| 271 // Exposed for testing. |
| 272 const std::map<DialogSection, bool>& section_editing_state() const { |
| 273 return section_editing_state_; |
| 274 } |
| 275 |
| 271 private: | 276 private: |
| 272 // Whether or not the current request wants credit info back. | 277 // Whether or not the current request wants credit info back. |
| 273 bool RequestingCreditCardInfo() const; | 278 bool RequestingCreditCardInfo() const; |
| 274 | 279 |
| 275 // Whether the information input in this dialog will be securely transmitted | 280 // Whether the information input in this dialog will be securely transmitted |
| 276 // to the requesting site. | 281 // to the requesting site. |
| 277 bool TransmissionWillBeSecure() const; | 282 bool TransmissionWillBeSecure() const; |
| 278 | 283 |
| 279 // Initializes |suggested_email_| et al. | 284 // Initializes |suggested_email_| et al. |
| 280 void SuggestionsUpdated(); | 285 void SuggestionsUpdated(); |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 587 |
| 583 // Whether the latency to display to the UI was logged to UMA yet. | 588 // Whether the latency to display to the UI was logged to UMA yet. |
| 584 bool was_ui_latency_logged_; | 589 bool was_ui_latency_logged_; |
| 585 | 590 |
| 586 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 591 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 587 }; | 592 }; |
| 588 | 593 |
| 589 } // namespace autofill | 594 } // namespace autofill |
| 590 | 595 |
| 591 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 596 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |