OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2008 Collabora Ltd. All rights reserved. | 3 * Copyright (C) 2008 Collabora Ltd. All rights reserved. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // when converting window rects. | 99 // when converting window rects. |
100 IntRect convertToRootFrame(const IntRect&) const; | 100 IntRect convertToRootFrame(const IntRect&) const; |
101 IntRect convertFromRootFrame(const IntRect&) const; | 101 IntRect convertFromRootFrame(const IntRect&) const; |
102 | 102 |
103 IntPoint convertToRootFrame(const IntPoint&) const; | 103 IntPoint convertToRootFrame(const IntPoint&) const; |
104 IntPoint convertFromRootFrame(const IntPoint&) const; | 104 IntPoint convertFromRootFrame(const IntPoint&) const; |
105 FloatPoint convertFromRootFrame(const FloatPoint&) const; | 105 FloatPoint convertFromRootFrame(const FloatPoint&) const; |
106 | 106 |
107 virtual void frameRectsChanged() { } | 107 virtual void frameRectsChanged() { } |
108 | 108 |
109 // Notifies this widget that other widgets on the page have been repositione
d. | 109 virtual void widgetGeometryMayHaveChanged() { } |
110 virtual void widgetPositionsUpdated() { } | |
111 | 110 |
112 virtual IntRect convertToContainingWidget(const IntRect&) const; | 111 virtual IntRect convertToContainingWidget(const IntRect&) const; |
113 virtual IntRect convertFromContainingWidget(const IntRect&) const; | 112 virtual IntRect convertFromContainingWidget(const IntRect&) const; |
114 virtual IntPoint convertToContainingWidget(const IntPoint&) const; | 113 virtual IntPoint convertToContainingWidget(const IntPoint&) const; |
115 virtual IntPoint convertFromContainingWidget(const IntPoint&) const; | 114 virtual IntPoint convertFromContainingWidget(const IntPoint&) const; |
116 | 115 |
117 // Virtual methods to convert points to/from child widgets | 116 // Virtual methods to convert points to/from child widgets |
118 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; | 117 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; |
119 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; | 118 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; |
120 | 119 |
121 // Notifies this widget that it will no longer be receiving events. | 120 // Notifies this widget that it will no longer be receiving events. |
122 virtual void eventListenersRemoved() { } | 121 virtual void eventListenersRemoved() { } |
123 | 122 |
124 DECLARE_VIRTUAL_TRACE(); | 123 DECLARE_VIRTUAL_TRACE(); |
125 virtual void dispose() { } | 124 virtual void dispose() { } |
126 | 125 |
127 private: | 126 private: |
128 RawPtrWillBeMember<Widget> m_parent; | 127 RawPtrWillBeMember<Widget> m_parent; |
129 IntRect m_frame; | 128 IntRect m_frame; |
130 bool m_selfVisible; | 129 bool m_selfVisible; |
131 bool m_parentVisible; | 130 bool m_parentVisible; |
132 }; | 131 }; |
133 | 132 |
134 } // namespace blink | 133 } // namespace blink |
135 | 134 |
136 #endif // Widget_h | 135 #endif // Widget_h |
OLD | NEW |