| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 } | 892 } |
| 893 result[i] = webrect; | 893 result[i] = webrect; |
| 894 } | 894 } |
| 895 bounds.swap(result); | 895 bounds.swap(result); |
| 896 return true; | 896 return true; |
| 897 } | 897 } |
| 898 | 898 |
| 899 void WebFrameWidgetImpl::applyReplacementRange(int start, int length) | 899 void WebFrameWidgetImpl::applyReplacementRange(int start, int length) |
| 900 { | 900 { |
| 901 if (LocalFrame* frame = focusedLocalFrameInWidget()) { | 901 if (LocalFrame* frame = focusedLocalFrameInWidget()) { |
| 902 WebLocalFrameImpl* webLocalFrame = WebLocalFrameImpl::fromFrame(frame); | 902 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems |
| 903 WebRange webrange = WebRange::fromDocumentRange(webLocalFrame, start, le
ngth); | 903 // silly. What is going on here? |
| 904 if (!webrange.isNull()) | 904 WebLocalFrameImpl::fromFrame(frame)->selectRange(WebRange(start, length)
); |
| 905 webLocalFrame->selectRange(webrange); | |
| 906 } | 905 } |
| 907 } | 906 } |
| 908 | 907 |
| 909 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE
vent& event) | 908 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE
vent& event) |
| 910 { | 909 { |
| 911 // FIXME: WebWidget doesn't have the method below. | 910 // FIXME: WebWidget doesn't have the method below. |
| 912 // m_client->setMouseOverURL(WebURL()); | 911 // m_client->setMouseOverURL(WebURL()); |
| 913 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); | 912 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); |
| 914 } | 913 } |
| 915 | 914 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 } | 1458 } |
| 1460 | 1459 |
| 1461 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1460 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
| 1462 { | 1461 { |
| 1463 if (!m_imeAcceptEvents) | 1462 if (!m_imeAcceptEvents) |
| 1464 return nullptr; | 1463 return nullptr; |
| 1465 return focusedLocalFrameInWidget(); | 1464 return focusedLocalFrameInWidget(); |
| 1466 } | 1465 } |
| 1467 | 1466 |
| 1468 } // namespace blink | 1467 } // namespace blink |
| OLD | NEW |