Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: third_party/WebKit/Source/platform/Widget.h

Issue 1513573013: Don't call LayoutPart::widgetPositionsUpdated unnecessarily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Notifies this widget that other widgets on the page have been repositione d.
110 virtual void widgetPositionsUpdated() { } 110 virtual void widgetGeometriesUpdated() { }
111 111
112 virtual IntRect convertToContainingWidget(const IntRect&) const; 112 virtual IntRect convertToContainingWidget(const IntRect&) const;
113 virtual IntRect convertFromContainingWidget(const IntRect&) const; 113 virtual IntRect convertFromContainingWidget(const IntRect&) const;
114 virtual IntPoint convertToContainingWidget(const IntPoint&) const; 114 virtual IntPoint convertToContainingWidget(const IntPoint&) const;
115 virtual IntPoint convertFromContainingWidget(const IntPoint&) const; 115 virtual IntPoint convertFromContainingWidget(const IntPoint&) const;
116 116
117 // Virtual methods to convert points to/from child widgets 117 // Virtual methods to convert points to/from child widgets
118 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; 118 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const;
119 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; 119 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const;
120 120
121 // Notifies this widget that it will no longer be receiving events. 121 // Notifies this widget that it will no longer be receiving events.
122 virtual void eventListenersRemoved() { } 122 virtual void eventListenersRemoved() { }
123 123
124 DECLARE_VIRTUAL_TRACE(); 124 DECLARE_VIRTUAL_TRACE();
125 virtual void dispose() { } 125 virtual void dispose() { }
126 126
127 private: 127 private:
128 RawPtrWillBeMember<Widget> m_parent; 128 RawPtrWillBeMember<Widget> m_parent;
129 IntRect m_frame; 129 IntRect m_frame;
130 bool m_selfVisible; 130 bool m_selfVisible;
131 bool m_parentVisible; 131 bool m_parentVisible;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // Widget_h 136 #endif // Widget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698