Changeset 87333 in webkit
- Timestamp:
- May 25, 2011 4:30:41 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r87313 r87333 1 2011-05-25 Sailesh Agrawal <sail@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Expose willStartLiveResize and willEndLiveResize in WebWidget 6 https://bugs.webkit.org/show_bug.cgi?id=60518 7 8 * public/WebWidget.h: 9 * src/WebPopupMenuImpl.cpp: 10 (WebKit::WebPopupMenuImpl::willStartLiveResize): 11 (WebKit::WebPopupMenuImpl::willEndLiveResize): 12 * src/WebPopupMenuImpl.h: 13 * src/WebViewImpl.cpp: 14 (WebKit::WebViewImpl::willStartLiveResize): 15 (WebKit::WebViewImpl::willEndLiveResize): 16 * src/WebViewImpl.h: 17 1 18 2011-05-25 Sheriff Bot <webkit.review.bot@gmail.com> 2 19 -
trunk/Source/WebKit/chromium/public/WebWidget.h
r85001 r87333 56 56 virtual WebSize size() = 0; 57 57 58 // Used to group a series of resize events. For example, if the user 59 // drags a resizer then willStartLiveResize will be called, followed by a 60 // sequence of resize events, ending with willEndLiveResize when the user 61 // lets go of the resizer. 62 virtual void willStartLiveResize() = 0; 63 58 64 // Called to resize the WebWidget. 59 65 virtual void resize(const WebSize&) = 0; 66 67 // Ends a group of resize events that was started with a call to 68 // willStartLiveResize. 69 virtual void willEndLiveResize() = 0; 60 70 61 71 // Called to update imperative animation state. This should be called before -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
r86451 r87333 137 137 } 138 138 139 void WebPopupMenuImpl::willStartLiveResize() 140 { 141 } 142 139 143 void WebPopupMenuImpl::resize(const WebSize& newSize) 140 144 { … … 152 156 m_client->didInvalidateRect(damagedRect); 153 157 } 158 } 159 160 void WebPopupMenuImpl::willEndLiveResize() 161 { 154 162 } 155 163 -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.h
r85001 r87333 63 63 virtual void close(); 64 64 virtual WebSize size() { return m_size; } 65 virtual void willStartLiveResize(); 65 66 virtual void resize(const WebSize&); 67 virtual void willEndLiveResize(); 66 68 virtual void animate(); 67 69 virtual void layout(); -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r87167 r87333 973 973 } 974 974 975 void WebViewImpl::willStartLiveResize() 976 { 977 if (mainFrameImpl() && mainFrameImpl()->frameView()) 978 mainFrameImpl()->frameView()->willStartLiveResize(); 979 } 980 975 981 void WebViewImpl::resize(const WebSize& newSize) 976 982 { … … 1001 1007 } 1002 1008 #endif 1009 } 1010 1011 void WebViewImpl::willEndLiveResize() 1012 { 1013 if (mainFrameImpl() && mainFrameImpl()->frameView()) 1014 mainFrameImpl()->frameView()->willEndLiveResize(); 1003 1015 } 1004 1016 -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r86047 r87333 92 92 virtual void close(); 93 93 virtual WebSize size() { return m_size; } 94 virtual void willStartLiveResize(); 94 95 virtual void resize(const WebSize&); 96 virtual void willEndLiveResize(); 95 97 virtual void animate(); 96 98 virtual void layout();
Note: See TracChangeset
for help on using the changeset viewer.