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 <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 virtual void ChildVisibilityChanged(View* child) {} | 1020 virtual void ChildVisibilityChanged(View* child) {} |
1021 | 1021 |
1022 // Invalidates the layout and calls ChildPreferredSizeChanged on the parent | 1022 // Invalidates the layout and calls ChildPreferredSizeChanged on the parent |
1023 // if there is one. Be sure to call View::PreferredSizeChanged when | 1023 // if there is one. Be sure to call View::PreferredSizeChanged when |
1024 // overriding such that the layout is properly invalidated. | 1024 // overriding such that the layout is properly invalidated. |
1025 virtual void PreferredSizeChanged(); | 1025 virtual void PreferredSizeChanged(); |
1026 | 1026 |
1027 // Override returning true when the view needs to be notified when its visible | 1027 // Override returning true when the view needs to be notified when its visible |
1028 // bounds relative to the root view may have changed. Only used by | 1028 // bounds relative to the root view may have changed. Only used by |
1029 // NativeViewHost. | 1029 // NativeViewHost. |
1030 virtual bool NeedsNotificationWhenVisibleBoundsChange() const; | 1030 virtual bool GetNeedsNotificationWhenVisibleBoundsChange() const; |
1031 | 1031 |
1032 // Notification that this View's visible bounds relative to the root view may | 1032 // Notification that this View's visible bounds relative to the root view may |
1033 // have changed. The visible bounds are the region of the View not clipped by | 1033 // have changed. The visible bounds are the region of the View not clipped by |
1034 // its ancestors. This is used for clipping NativeViewHost. | 1034 // its ancestors. This is used for clipping NativeViewHost. |
1035 virtual void OnVisibleBoundsChanged(); | 1035 virtual void OnVisibleBoundsChanged(); |
1036 | 1036 |
1037 // Override to be notified when the enabled state of this View has | 1037 // Override to be notified when the enabled state of this View has |
1038 // changed. The default implementation calls SchedulePaint() on this View. | 1038 // changed. The default implementation calls SchedulePaint() on this View. |
1039 virtual void OnEnabledChanged(); | 1039 virtual void OnEnabledChanged(); |
1040 | 1040 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 // Belongs to this view, but it's reference-counted on some platforms | 1601 // Belongs to this view, but it's reference-counted on some platforms |
1602 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1602 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1603 NativeViewAccessibility* native_view_accessibility_; | 1603 NativeViewAccessibility* native_view_accessibility_; |
1604 | 1604 |
1605 DISALLOW_COPY_AND_ASSIGN(View); | 1605 DISALLOW_COPY_AND_ASSIGN(View); |
1606 }; | 1606 }; |
1607 | 1607 |
1608 } // namespace views | 1608 } // namespace views |
1609 | 1609 |
1610 #endif // UI_VIEWS_VIEW_H_ | 1610 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |