| 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1316 |
| 1317 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1317 void WebLocalFrameImpl::setCaretVisible(bool visible) |
| 1318 { | 1318 { |
| 1319 frame()->selection().setCaretVisible(visible); | 1319 frame()->selection().setCaretVisible(visible); |
| 1320 } | 1320 } |
| 1321 | 1321 |
| 1322 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) | 1322 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) |
| 1323 { | 1323 { |
| 1324 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; | 1324 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; |
| 1325 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie
wport)); | 1325 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie
wport)); |
| 1326 frame()->document()->layoutView()->layer()->hitTest(result); | 1326 frame()->document()->layoutView()->hitTest(result); |
| 1327 | 1327 |
| 1328 if (Node* node = result.innerNode()) | 1328 if (Node* node = result.innerNode()) |
| 1329 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); | 1329 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); |
| 1330 return VisiblePosition(); | 1330 return VisiblePosition(); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() | 1333 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() |
| 1334 { | 1334 { |
| 1335 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); | 1335 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); |
| 1336 if (container && container->supportsInputMethod()) | 1336 if (container && container->supportsInputMethod()) |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 { | 2106 { |
| 2107 m_frameWidget = frameWidget; | 2107 m_frameWidget = frameWidget; |
| 2108 } | 2108 } |
| 2109 | 2109 |
| 2110 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2110 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2111 { | 2111 { |
| 2112 return m_frameWidget; | 2112 return m_frameWidget; |
| 2113 } | 2113 } |
| 2114 | 2114 |
| 2115 } // namespace blink | 2115 } // namespace blink |
| OLD | NEW |