| 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_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
| 6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 int group_; | 1459 int group_; |
| 1460 | 1460 |
| 1461 // Tree operations ----------------------------------------------------------- | 1461 // Tree operations ----------------------------------------------------------- |
| 1462 | 1462 |
| 1463 // This view's parent. | 1463 // This view's parent. |
| 1464 View* parent_; | 1464 View* parent_; |
| 1465 | 1465 |
| 1466 // This view's children. | 1466 // This view's children. |
| 1467 Views children_; | 1467 Views children_; |
| 1468 | 1468 |
| 1469 #if DCHECK_IS_ON() |
| 1470 // True while iterating over |children_|. Used to detect and DCHECK when |
| 1471 // |children_| is mutated during iteration. |
| 1472 mutable bool iterating_; |
| 1473 #endif |
| 1474 |
| 1469 // Size and disposition ------------------------------------------------------ | 1475 // Size and disposition ------------------------------------------------------ |
| 1470 | 1476 |
| 1471 // This View's bounds in the parent coordinate system. | 1477 // This View's bounds in the parent coordinate system. |
| 1472 gfx::Rect bounds_; | 1478 gfx::Rect bounds_; |
| 1473 | 1479 |
| 1474 // Whether this view is visible. | 1480 // Whether this view is visible. |
| 1475 bool visible_; | 1481 bool visible_; |
| 1476 | 1482 |
| 1477 // Whether this view is enabled. | 1483 // Whether this view is enabled. |
| 1478 bool enabled_; | 1484 bool enabled_; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 // Observers ------------------------------------------------------------- | 1589 // Observers ------------------------------------------------------------- |
| 1584 | 1590 |
| 1585 base::ObserverList<ViewObserver> observers_; | 1591 base::ObserverList<ViewObserver> observers_; |
| 1586 | 1592 |
| 1587 DISALLOW_COPY_AND_ASSIGN(View); | 1593 DISALLOW_COPY_AND_ASSIGN(View); |
| 1588 }; | 1594 }; |
| 1589 | 1595 |
| 1590 } // namespace views | 1596 } // namespace views |
| 1591 | 1597 |
| 1592 #endif // UI_VIEWS_VIEW_H_ | 1598 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |