Chromium Code Reviews| 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 872 if (!webLocalFrame->firstRectForCharacterRange(offset + i, 1, webrect)) { | 872 if (!webLocalFrame->firstRectForCharacterRange(offset + i, 1, webrect)) { |
| 873 DLOG(ERROR) << "Could not retrieve character rectangle at " << i; | 873 DLOG(ERROR) << "Could not retrieve character rectangle at " << i; |
| 874 return false; | 874 return false; |
| 875 } | 875 } |
| 876 result[i] = webrect; | 876 result[i] = webrect; |
| 877 } | 877 } |
| 878 bounds.swap(result); | 878 bounds.swap(result); |
| 879 return true; | 879 return true; |
| 880 } | 880 } |
| 881 | 881 |
| 882 void WebFrameWidgetImpl::applyReplacementRange(int start, int length) | 882 void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) |
|
esprehn
2016/09/02 21:25:22
fwiw WebRange is just a wrapper around some ints,
| |
| 883 { | 883 { |
| 884 if (LocalFrame* frame = focusedLocalFrameInWidget()) { | 884 if (LocalFrame* frame = focusedLocalFrameInWidget()) { |
| 885 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems | 885 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems |
| 886 // silly. What is going on here? | 886 // silly. What is going on here? |
| 887 WebLocalFrameImpl::fromFrame(frame)->selectRange(WebRange(start, length) ); | 887 WebLocalFrameImpl::fromFrame(frame)->selectRange(range); |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 | 890 |
| 891 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE vent& event) | 891 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, const WebMouseE vent& event) |
| 892 { | 892 { |
| 893 // FIXME: WebWidget doesn't have the method below. | 893 // FIXME: WebWidget doesn't have the method below. |
| 894 // m_client->setMouseOverURL(WebURL()); | 894 // m_client->setMouseOverURL(WebURL()); |
| 895 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); | 895 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); |
| 896 } | 896 } |
| 897 | 897 |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1438 } | 1438 } |
| 1439 | 1439 |
| 1440 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1440 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
| 1441 { | 1441 { |
| 1442 if (!m_imeAcceptEvents) | 1442 if (!m_imeAcceptEvents) |
| 1443 return nullptr; | 1443 return nullptr; |
| 1444 return focusedLocalFrameInWidget(); | 1444 return focusedLocalFrameInWidget(); |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 } // namespace blink | 1447 } // namespace blink |
| OLD | NEW |