Changeset 49741 in webkit
- Timestamp:
- Oct 17, 2009 8:49:02 AM (14 years ago)
- Location:
- trunk/WebKit/wx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/wx/ChangeLog
r49712 r49741 1 2009-10-16 Kevin Watters <kevinwatters@gmail.com> 2 3 Reviewed by Kevin Ollivier. 4 5 Optionally allow the user to zoom text using the mouse wheel. 6 7 https://bugs.webkit.org/show_bug.cgi?id=30444 8 9 * WebView.cpp: 10 (wxWebView::wxWebView): 11 (wxWebView::OnMouseEvents): 12 * WebView.h: 13 1 14 2009-10-16 Kevin Ollivier <kevino@theolliviers.com> 2 15 -
trunk/WebKit/wx/WebView.cpp
r49712 r49741 270 270 m_isInitialized(false), 271 271 m_beingDestroyed(false), 272 m_mouseWheelZooms(false), 272 273 m_title(wxEmptyString) 273 274 { … … 280 281 m_isInitialized(false), 281 282 m_beingDestroyed(false), 283 m_mouseWheelZooms(false), 282 284 m_title(wxEmptyString) 283 285 { … … 593 595 594 596 if (type == wxEVT_MOUSEWHEEL) { 595 WebCore::PlatformWheelEvent wkEvent(event, globalPoint); 596 frame->eventHandler()->handleWheelEvent(wkEvent); 597 if (m_mouseWheelZooms && event.ControlDown() && !event.AltDown() && !event.ShiftDown()) { 598 if (event.GetWheelRotation() < 0) 599 DecreaseTextSize(); 600 else if (event.GetWheelRotation() > 0) 601 IncreaseTextSize(); 602 } else { 603 WebCore::PlatformWheelEvent wkEvent(event, globalPoint); 604 frame->eventHandler()->handleWheelEvent(wkEvent); 605 } 606 597 607 return; 598 608 } -
trunk/WebKit/wx/WebView.h
r48451 r49741 195 195 static wxWebViewCachePolicy GetCachePolicy(); 196 196 197 void SetMouseWheelZooms(bool mouseWheelZooms) { m_mouseWheelZooms = mouseWheelZooms; } 198 bool GetMouseWheelZooms() const { return m_mouseWheelZooms; } 199 197 200 protected: 198 201 … … 217 220 bool m_isInitialized; 218 221 bool m_beingDestroyed; 222 bool m_mouseWheelZooms; 219 223 WebViewPrivate* m_impl; 220 224 wxWebFrame* m_mainFrame;
Note: See TracChangeset
for help on using the changeset viewer.