Chromium Code Reviews| 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 UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 | 120 |
| 121 // Container view for the button row. | 121 // Container view for the button row. |
| 122 ButtonRowContainer* button_row_container_ = nullptr; | 122 ButtonRowContainer* button_row_container_ = nullptr; |
| 123 | 123 |
| 124 // True if we've notified the delegate the window is closing and the delegate | 124 // True if we've notified the delegate the window is closing and the delegate |
| 125 // allowed the close. In some situations it's possible to get two closes (see | 125 // allowed the close. In some situations it's possible to get two closes (see |
| 126 // http://crbug.com/71940). This is used to avoid notifying the delegate | 126 // http://crbug.com/71940). This is used to avoid notifying the delegate |
| 127 // twice, which can have bad consequences. | 127 // twice, which can have bad consequences. |
| 128 bool delegate_allowed_close_ = false; | 128 bool delegate_allowed_close_ = false; |
| 129 | 129 |
| 130 // When true, prevents ViewHierarchyChanged() from clearing out data members. | 130 // When true, prevents ViewHierarchyChanged() from clearing out data members |
| 131 bool preserve_button_row_data_members_ = false; | 131 // and spurious triggers to Layout() from extra views. |
|
Peter Kasting
2017/03/08 11:33:17
This comment is now overly specific, since the mem
tapted
2017/03/08 12:19:03
Done.
| |
| 132 bool adding_or_removing_views_ = false; | |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(DialogClientView); | 134 DISALLOW_COPY_AND_ASSIGN(DialogClientView); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace views | 137 } // namespace views |
| 137 | 138 |
| 138 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 139 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| OLD | NEW |