| 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 3933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3944 } | 3944 } |
| 3945 | 3945 |
| 3946 void WebViewImpl::mainFrameScrollOffsetChanged() { | 3946 void WebViewImpl::mainFrameScrollOffsetChanged() { |
| 3947 m_devToolsEmulator->mainFrameScrollOrScaleChanged(); | 3947 m_devToolsEmulator->mainFrameScrollOrScaleChanged(); |
| 3948 } | 3948 } |
| 3949 | 3949 |
| 3950 bool WebViewImpl::useExternalPopupMenus() { | 3950 bool WebViewImpl::useExternalPopupMenus() { |
| 3951 return shouldUseExternalPopupMenus; | 3951 return shouldUseExternalPopupMenus; |
| 3952 } | 3952 } |
| 3953 | 3953 |
| 3954 void WebViewImpl::startDragging(LocalFrame* frame, | |
| 3955 const WebDragData& dragData, | |
| 3956 WebDragOperationsMask mask, | |
| 3957 const WebImage& dragImage, | |
| 3958 const WebPoint& dragImageOffset) { | |
| 3959 if (!m_client) | |
| 3960 return; | |
| 3961 DCHECK(!m_doingDragAndDrop); | |
| 3962 m_doingDragAndDrop = true; | |
| 3963 m_client->startDragging(WebLocalFrameImpl::fromFrame(frame), dragData, mask, | |
| 3964 dragImage, dragImageOffset); | |
| 3965 } | |
| 3966 | |
| 3967 void WebViewImpl::setIgnoreInputEvents(bool newValue) { | 3954 void WebViewImpl::setIgnoreInputEvents(bool newValue) { |
| 3968 DCHECK_NE(m_ignoreInputEvents, newValue); | 3955 DCHECK_NE(m_ignoreInputEvents, newValue); |
| 3969 m_ignoreInputEvents = newValue; | 3956 m_ignoreInputEvents = newValue; |
| 3970 } | 3957 } |
| 3971 | 3958 |
| 3972 void WebViewImpl::setBackgroundColorOverride(WebColor color) { | 3959 void WebViewImpl::setBackgroundColorOverride(WebColor color) { |
| 3973 m_backgroundColorOverride = color; | 3960 m_backgroundColorOverride = color; |
| 3974 updateLayerTreeBackgroundColor(); | 3961 updateLayerTreeBackgroundColor(); |
| 3975 } | 3962 } |
| 3976 | 3963 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4453 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4440 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4454 return nullptr; | 4441 return nullptr; |
| 4455 return focusedFrame; | 4442 return focusedFrame; |
| 4456 } | 4443 } |
| 4457 | 4444 |
| 4458 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4445 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4459 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4446 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4460 } | 4447 } |
| 4461 | 4448 |
| 4462 } // namespace blink | 4449 } // namespace blink |
| OLD | NEW |