OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 nonUserInitiatedPointPadding, minimumPageScaleFactor(), scale, scroll); | 1582 nonUserInitiatedPointPadding, minimumPageScaleFactor(), scale, scroll); |
1583 | 1583 |
1584 if (scale <= pageScaleFactor()) | 1584 if (scale <= pageScaleFactor()) |
1585 return false; | 1585 return false; |
1586 | 1586 |
1587 startPageScaleAnimation(scroll, false, scale, | 1587 startPageScaleAnimation(scroll, false, scale, |
1588 multipleTargetsZoomAnimationDurationInSeconds); | 1588 multipleTargetsZoomAnimationDurationInSeconds); |
1589 return true; | 1589 return true; |
1590 } | 1590 } |
1591 | 1591 |
1592 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers) { | |
1593 if (m_client) | |
1594 m_client->hasTouchEventHandlers(hasTouchHandlers); | |
1595 } | |
1596 | |
1597 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) { | 1592 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) { |
1598 // FIXME: Implement this. Note that the point must be divided by | 1593 // FIXME: Implement this. Note that the point must be divided by |
1599 // pageScaleFactor. | 1594 // pageScaleFactor. |
1600 return true; | 1595 return true; |
1601 } | 1596 } |
1602 | 1597 |
1603 #if !OS(MACOSX) | 1598 #if !OS(MACOSX) |
1604 // Mac has no way to open a context menu based on a keyboard event. | 1599 // Mac has no way to open a context menu based on a keyboard event. |
1605 WebInputEventResult WebViewImpl::sendContextMenuEvent( | 1600 WebInputEventResult WebViewImpl::sendContextMenuEvent( |
1606 const WebKeyboardEvent& event) { | 1601 const WebKeyboardEvent& event) { |
(...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4191 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4186 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
4192 return nullptr; | 4187 return nullptr; |
4193 return focusedFrame; | 4188 return focusedFrame; |
4194 } | 4189 } |
4195 | 4190 |
4196 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4191 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
4197 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4192 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
4198 } | 4193 } |
4199 | 4194 |
4200 } // namespace blink | 4195 } // namespace blink |
OLD | NEW |