| 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 3745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3756 screenPoint, | 3756 screenPoint, |
| 3757 static_cast<DragOperation>(m_operationsAllowed)); | 3757 static_cast<DragOperation>(m_operationsAllowed)); |
| 3758 | 3758 |
| 3759 UserGestureIndicator gesture(DefinitelyProcessingNewUserGesture); | 3759 UserGestureIndicator gesture(DefinitelyProcessingNewUserGesture); |
| 3760 m_page->dragController().performDrag(&dragData); | 3760 m_page->dragController().performDrag(&dragData); |
| 3761 | 3761 |
| 3762 m_dragOperation = WebDragOperationNone; | 3762 m_dragOperation = WebDragOperationNone; |
| 3763 m_currentDragData = nullptr; | 3763 m_currentDragData = nullptr; |
| 3764 } | 3764 } |
| 3765 | 3765 |
| 3766 void WebViewImpl::spellingMarkers(WebVector<uint32_t>* markers) | |
| 3767 { | |
| 3768 Vector<uint32_t> result; | |
| 3769 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traver
seNext()) { | |
| 3770 if (!frame->isLocalFrame()) | |
| 3771 continue; | |
| 3772 const DocumentMarkerVector& documentMarkers = toLocalFrame(frame)->docum
ent()->markers().markers(); | |
| 3773 for (size_t i = 0; i < documentMarkers.size(); ++i) | |
| 3774 result.append(documentMarkers[i]->hash()); | |
| 3775 } | |
| 3776 markers->assign(result); | |
| 3777 } | |
| 3778 | |
| 3779 void WebViewImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& wo
rds) | 3766 void WebViewImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& wo
rds) |
| 3780 { | 3767 { |
| 3781 Vector<String> convertedWords; | 3768 Vector<String> convertedWords; |
| 3782 convertedWords.append(words.data(), words.size()); | 3769 convertedWords.append(words.data(), words.size()); |
| 3783 | 3770 |
| 3784 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traver
seNext()) { | 3771 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traver
seNext()) { |
| 3785 if (frame->isLocalFrame()) | 3772 if (frame->isLocalFrame()) |
| 3786 toLocalFrame(frame)->removeSpellingMarkersUnderWords(convertedWords)
; | 3773 toLocalFrame(frame)->removeSpellingMarkersUnderWords(convertedWords)
; |
| 3787 } | 3774 } |
| 3788 } | 3775 } |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4618 return nullptr; | 4605 return nullptr; |
| 4619 return focusedFrame; | 4606 return focusedFrame; |
| 4620 } | 4607 } |
| 4621 | 4608 |
| 4622 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const | 4609 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const |
| 4623 { | 4610 { |
| 4624 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4611 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4625 } | 4612 } |
| 4626 | 4613 |
| 4627 } // namespace blink | 4614 } // namespace blink |
| OLD | NEW |