Commit 33aed6c7 authored by hyatt's avatar hyatt

Add support for Ctrl+Mouse Wheel to do text zooming on Win32.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ad771705
2007-06-17 Dave Hyatt <hyatt@apple.com>
Add support for Ctrl+Mouse Wheel to increase/decrease text zoom (Win32 only).
Reviewed by aroben
* WebView.cpp:
(WebView::mouseWheel):
2007-06-09 Steve Falkenburg <sfalken@apple.com>
Reviewed by Adam.
......@@ -2126,8 +2135,6 @@
2007-03-14 Steve Falkenburg <sfalken@apple.com>
Reviewed by NOBODY (OOPS!).
<rdar://problem/5050470> Reproducible crash doing find on page at cnn.com
Add frame->document() null checks in cases where frame could be a
......@@ -5560,9 +5567,7 @@
* WebLocalizableStrings.h: Added.
2006-12-04 Steve Falkenburg <sfalken@apple.com>
Reviewed by NOBODY (OOPS!).
Checkpoint of <rdar://4601521>
Use CoreFoundation bundles w/ Localizable.strings for localization.
......@@ -5750,9 +5755,7 @@
(WebFrame::initWithWebFrameView):
2006-11-28 Steve Falkenburg <sfalken@apple.com>
Reviewed by NOBODY (OOPS!).
Make COM registration fall back to per-user for Vista LUA compatibility.
Only affects our development builds since the installer will set these
......@@ -8225,8 +8228,6 @@
2006-09-12 Steve Falkenburg <sfalken@apple.com>
Reviewed by NOBODY (OOPS!).
Get Boomer ready for B&I submission.
Projects can now all build independent of one another
......
......@@ -841,6 +841,18 @@ bool WebView::handleMouseEvent(UINT message, WPARAM wParam, LPARAM lParam)
bool WebView::mouseWheel(WPARAM wParam, LPARAM lParam)
{
// Ctrl+Mouse wheel doesn't ever go into WebCore. It is used to
// zoom instead (Mac zooms the whole Desktop, but Windows browsers trigger their
// own local zoom modes for Ctrl+wheel).
if (wParam & MK_CONTROL) {
short delta = short(HIWORD(wParam));
if (delta < 0)
makeTextLarger(0);
else
makeTextSmaller(0);
return true;
}
PlatformWheelEvent wheelEvent(m_viewWindow, wParam, lParam);
Frame* coreFrame = core(m_mainFrame);
if (!coreFrame)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment