| 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 3120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3131 | 3131 |
| 3132 WebDragOperation WebViewImpl::dragTargetDragEnter( | 3132 WebDragOperation WebViewImpl::dragTargetDragEnter( |
| 3133 const WebDragData& webDragData, | 3133 const WebDragData& webDragData, |
| 3134 const WebPoint& clientPoint, | 3134 const WebPoint& clientPoint, |
| 3135 const WebPoint& screenPoint, | 3135 const WebPoint& screenPoint, |
| 3136 WebDragOperationsMask operationsAllowed, | 3136 WebDragOperationsMask operationsAllowed, |
| 3137 int keyModifiers) | 3137 int keyModifiers) |
| 3138 { | 3138 { |
| 3139 ASSERT(!m_currentDragData); | 3139 ASSERT(!m_currentDragData); |
| 3140 | 3140 |
| 3141 m_currentDragData = webDragData; | 3141 m_currentDragData = webDragData.getValue(); |
| 3142 m_operationsAllowed = operationsAllowed; | 3142 m_operationsAllowed = operationsAllowed; |
| 3143 | 3143 |
| 3144 return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragEnter, keyMod
ifiers); | 3144 return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragEnter, keyMod
ifiers); |
| 3145 } | 3145 } |
| 3146 | 3146 |
| 3147 WebDragOperation WebViewImpl::dragTargetDragOver( | 3147 WebDragOperation WebViewImpl::dragTargetDragOver( |
| 3148 const WebPoint& clientPoint, | 3148 const WebPoint& clientPoint, |
| 3149 const WebPoint& screenPoint, | 3149 const WebPoint& screenPoint, |
| 3150 WebDragOperationsMask operationsAllowed, | 3150 WebDragOperationsMask operationsAllowed, |
| 3151 int keyModifiers) | 3151 int keyModifiers) |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3990 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 3990 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
| 3991 | 3991 |
| 3992 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 3992 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
| 3993 return false; | 3993 return false; |
| 3994 | 3994 |
| 3995 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 3995 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 3996 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 3996 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 3997 } | 3997 } |
| 3998 | 3998 |
| 3999 } // namespace blink | 3999 } // namespace blink |
| OLD | NEW |