| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 | 1306 |
| 1307 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1307 void WebLocalFrameImpl::setCaretVisible(bool visible) |
| 1308 { | 1308 { |
| 1309 frame()->selection().setCaretVisible(visible); | 1309 frame()->selection().setCaretVisible(visible); |
| 1310 } | 1310 } |
| 1311 | 1311 |
| 1312 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) | 1312 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) |
| 1313 { | 1313 { |
| 1314 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; | 1314 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; |
| 1315 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie
wport)); | 1315 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie
wport)); |
| 1316 frame()->document()->layoutView()->layer()->hitTest(result); | 1316 frame()->document()->layoutView()->hitTest(result); |
| 1317 | 1317 |
| 1318 if (Node* node = result.innerNode()) | 1318 if (Node* node = result.innerNode()) |
| 1319 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); | 1319 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); |
| 1320 return VisiblePosition(); | 1320 return VisiblePosition(); |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() | 1323 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() |
| 1324 { | 1324 { |
| 1325 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); | 1325 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); |
| 1326 if (container && container->supportsInputMethod()) | 1326 if (container && container->supportsInputMethod()) |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 { | 2096 { |
| 2097 m_frameWidget = frameWidget; | 2097 m_frameWidget = frameWidget; |
| 2098 } | 2098 } |
| 2099 | 2099 |
| 2100 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2100 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2101 { | 2101 { |
| 2102 return m_frameWidget; | 2102 return m_frameWidget; |
| 2103 } | 2103 } |
| 2104 | 2104 |
| 2105 } // namespace blink | 2105 } // namespace blink |
| OLD | NEW |