OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
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 2847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2858 | 2858 |
2859 // Don't dispatch a synthetic mouse move event if the mouse cursor is not vi
sible to the user. | 2859 // Don't dispatch a synthetic mouse move event if the mouse cursor is not vi
sible to the user. |
2860 if (!isCursorVisible()) | 2860 if (!isCursorVisible()) |
2861 return; | 2861 return; |
2862 | 2862 |
2863 bool shiftKey; | 2863 bool shiftKey; |
2864 bool ctrlKey; | 2864 bool ctrlKey; |
2865 bool altKey; | 2865 bool altKey; |
2866 bool metaKey; | 2866 bool metaKey; |
2867 PlatformKeyboardEvent::getCurrentModifierState(shiftKey, ctrlKey, altKey, me
taKey); | 2867 PlatformKeyboardEvent::getCurrentModifierState(shiftKey, ctrlKey, altKey, me
taKey); |
2868 PlatformMouseEvent fakeMouseMoveEvent(m_lastKnownMousePosition, m_lastKnownM
ouseGlobalPosition, NoButton, PlatformEvent::MouseMoved, 0, shiftKey, ctrlKey, a
ltKey, metaKey, currentTime()); | 2868 PlatformMouseEvent fakeMouseMoveEvent(m_lastKnownMousePosition, m_lastKnownM
ouseGlobalPosition, NoButton, PlatformEvent::MouseMoved, 0, shiftKey, ctrlKey, a
ltKey, metaKey, currentTime(), PlatformMouseEvent::NotFromInput); |
2869 handleMouseMoveEvent(fakeMouseMoveEvent); | 2869 handleMouseMoveEvent(fakeMouseMoveEvent); |
2870 } | 2870 } |
2871 | 2871 |
2872 void EventHandler::cancelFakeMouseMoveEvent() | 2872 void EventHandler::cancelFakeMouseMoveEvent() |
2873 { | 2873 { |
2874 m_fakeMouseMoveEventTimer.stop(); | 2874 m_fakeMouseMoveEventTimer.stop(); |
2875 } | 2875 } |
2876 | 2876 |
2877 bool EventHandler::isCursorVisible() const | 2877 bool EventHandler::isCursorVisible() const |
2878 { | 2878 { |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3860 unsigned EventHandler::accessKeyModifiers() | 3860 unsigned EventHandler::accessKeyModifiers() |
3861 { | 3861 { |
3862 #if OS(MACOSX) | 3862 #if OS(MACOSX) |
3863 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3863 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3864 #else | 3864 #else |
3865 return PlatformEvent::AltKey; | 3865 return PlatformEvent::AltKey; |
3866 #endif | 3866 #endif |
3867 } | 3867 } |
3868 | 3868 |
3869 } // namespace blink | 3869 } // namespace blink |
OLD | NEW |