Changeset 87417 in webkit
- Timestamp:
- May 26, 2011 12:36:13 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r87342 r87417 1 2011-05-26 Sailesh Agrawal <sail@chromium.org> 2 3 Reviewed by Tony Chang. 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 Shishir Agrawal <shishir@chromium.org> 2 19 -
trunk/Source/WebKit/chromium/public/WebWidget.h
r87338 r87417 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() { } 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() { } 60 70 61 71 // Called to update imperative animation state. This should be called before -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
r87338 r87417 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
r87338 r87417 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
r87342 r87417 974 974 } 975 975 976 void WebViewImpl::willStartLiveResize() 977 { 978 if (mainFrameImpl() && mainFrameImpl()->frameView()) 979 mainFrameImpl()->frameView()->willStartLiveResize(); 980 } 981 976 982 void WebViewImpl::resize(const WebSize& newSize) 977 983 { … … 1002 1008 } 1003 1009 #endif 1010 } 1011 1012 void WebViewImpl::willEndLiveResize() 1013 { 1014 if (mainFrameImpl() && mainFrameImpl()->frameView()) 1015 mainFrameImpl()->frameView()->willEndLiveResize(); 1004 1016 } 1005 1017 -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r87338 r87417 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.