| 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 |
| 1592 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) { | 1597 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) { |
| 1593 // FIXME: Implement this. Note that the point must be divided by | 1598 // FIXME: Implement this. Note that the point must be divided by |
| 1594 // pageScaleFactor. | 1599 // pageScaleFactor. |
| 1595 return true; | 1600 return true; |
| 1596 } | 1601 } |
| 1597 | 1602 |
| 1598 #if !OS(MACOSX) | 1603 #if !OS(MACOSX) |
| 1599 // Mac has no way to open a context menu based on a keyboard event. | 1604 // Mac has no way to open a context menu based on a keyboard event. |
| 1600 WebInputEventResult WebViewImpl::sendContextMenuEvent( | 1605 WebInputEventResult WebViewImpl::sendContextMenuEvent( |
| 1601 const WebKeyboardEvent& event) { | 1606 const WebKeyboardEvent& event) { |
| (...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4186 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4191 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4187 return nullptr; | 4192 return nullptr; |
| 4188 return focusedFrame; | 4193 return focusedFrame; |
| 4189 } | 4194 } |
| 4190 | 4195 |
| 4191 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4196 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4192 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4197 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4193 } | 4198 } |
| 4194 | 4199 |
| 4195 } // namespace blink | 4200 } // namespace blink |
| OLD | NEW |