| 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_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 // when the dialog is closing. | 495 // when the dialog is closing. |
| 496 views::Widget* window_; | 496 views::Widget* window_; |
| 497 | 497 |
| 498 // A DialogSection-keyed map of the DetailGroup structs. | 498 // A DialogSection-keyed map of the DetailGroup structs. |
| 499 DetailGroupMap detail_groups_; | 499 DetailGroupMap detail_groups_; |
| 500 | 500 |
| 501 // Somewhere to show notification messages about errors, warnings, or promos. | 501 // Somewhere to show notification messages about errors, warnings, or promos. |
| 502 NotificationArea* notification_area_; | 502 NotificationArea* notification_area_; |
| 503 | 503 |
| 504 // Runs the suggestion menu (triggered by each section's |suggested_button|). | 504 // Runs the suggestion menu (triggered by each section's |suggested_button|). |
| 505 scoped_ptr<views::MenuRunner> menu_runner_; | 505 std::unique_ptr<views::MenuRunner> menu_runner_; |
| 506 | 506 |
| 507 // View that wraps |details_container_| and makes it scroll vertically. | 507 // View that wraps |details_container_| and makes it scroll vertically. |
| 508 views::ScrollView* scrollable_area_; | 508 views::ScrollView* scrollable_area_; |
| 509 | 509 |
| 510 // View to host details sections. | 510 // View to host details sections. |
| 511 DetailsContainerView* details_container_; | 511 DetailsContainerView* details_container_; |
| 512 | 512 |
| 513 // The "Extra view" is on the same row as the dialog buttons. | 513 // The "Extra view" is on the same row as the dialog buttons. |
| 514 views::View* button_strip_extra_view_; | 514 views::View* button_strip_extra_view_; |
| 515 | 515 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 529 | 529 |
| 530 // The object that manages the error bubble widget. | 530 // The object that manages the error bubble widget. |
| 531 InfoBubble* error_bubble_; // Weak; owns itself. | 531 InfoBubble* error_bubble_; // Weak; owns itself. |
| 532 | 532 |
| 533 // Map from input view (textfield or combobox) to error string. | 533 // Map from input view (textfield or combobox) to error string. |
| 534 std::map<views::View*, base::string16> validity_map_; | 534 std::map<views::View*, base::string16> validity_map_; |
| 535 | 535 |
| 536 ScopedObserver<views::Widget, AutofillDialogViews> observer_; | 536 ScopedObserver<views::Widget, AutofillDialogViews> observer_; |
| 537 | 537 |
| 538 // Used to tell the delegate when focus moves to hide the Autofill popup. | 538 // Used to tell the delegate when focus moves to hide the Autofill popup. |
| 539 scoped_ptr<ui::EventHandler> event_handler_; | 539 std::unique_ptr<ui::EventHandler> event_handler_; |
| 540 | 540 |
| 541 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); | 541 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); |
| 542 }; | 542 }; |
| 543 | 543 |
| 544 } // namespace autofill | 544 } // namespace autofill |
| 545 | 545 |
| 546 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | 546 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ |
| OLD | NEW |