| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 synthesizeMouseEventIfPossible(event); | 921 synthesizeMouseEventIfPossible(event); |
| 922 return; | 922 return; |
| 923 } | 923 } |
| 924 } | 924 } |
| 925 | 925 |
| 926 static inline bool gestureScrollHelper(ScrollbarGroup* scrollbarGroup, ScrollDir
ection positiveDirection, ScrollDirection negativeDirection, float delta) | 926 static inline bool gestureScrollHelper(ScrollbarGroup* scrollbarGroup, ScrollDir
ection positiveDirection, ScrollDirection negativeDirection, float delta) |
| 927 { | 927 { |
| 928 if (!delta) | 928 if (!delta) |
| 929 return false; | 929 return false; |
| 930 float absDelta = delta > 0 ? delta : -delta; | 930 float absDelta = delta > 0 ? delta : -delta; |
| 931 return scrollbarGroup->scroll(delta < 0 ? negativeDirection : positiveDirect
ion, ScrollByPrecisePixel, absDelta); | 931 return scrollbarGroup->scroll(delta < 0 ? negativeDirection : positiveDirect
ion, ScrollByPrecisePixel, absDelta).didScroll; |
| 932 } | 932 } |
| 933 | 933 |
| 934 void WebPluginContainerImpl::handleGestureEvent(GestureEvent* event) | 934 void WebPluginContainerImpl::handleGestureEvent(GestureEvent* event) |
| 935 { | 935 { |
| 936 WebGestureEventBuilder webEvent(m_element->layoutObject(), *event); | 936 WebGestureEventBuilder webEvent(m_element->layoutObject(), *event); |
| 937 if (webEvent.type == WebInputEvent::Undefined) | 937 if (webEvent.type == WebInputEvent::Undefined) |
| 938 return; | 938 return; |
| 939 if (event->type() == EventTypeNames::gesturetapdown) | 939 if (event->type() == EventTypeNames::gesturetapdown) |
| 940 focusPlugin(); | 940 focusPlugin(); |
| 941 WebCursorInfo cursorInfo; | 941 WebCursorInfo cursorInfo; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 for (size_t i = 0; i < cutOutRects.size(); i++) | 1016 for (size_t i = 0; i < cutOutRects.size(); i++) |
| 1017 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 1017 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 bool WebPluginContainerImpl::pluginShouldPersist() const | 1020 bool WebPluginContainerImpl::pluginShouldPersist() const |
| 1021 { | 1021 { |
| 1022 return m_webPlugin->shouldPersist(); | 1022 return m_webPlugin->shouldPersist(); |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 } // namespace blink | 1025 } // namespace blink |
| OLD | NEW |