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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 } | 1298 } |
1299 | 1299 |
1300 void WebLocalFrameImpl::setCaretVisible(bool visible) | 1300 void WebLocalFrameImpl::setCaretVisible(bool visible) |
1301 { | 1301 { |
1302 frame()->selection().setCaretVisible(visible); | 1302 frame()->selection().setCaretVisible(visible); |
1303 } | 1303 } |
1304 | 1304 |
1305 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) | 1305 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin
t& pointInViewport) |
1306 { | 1306 { |
1307 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; | 1307 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; |
1308 HitTestResult result(frame()->view()->viewportToContents(pointInViewport)); | 1308 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie
wport)); |
1309 frame()->document()->layoutView()->layer()->hitTest(request, result); | 1309 frame()->document()->layoutView()->layer()->hitTest(result); |
1310 | 1310 |
1311 if (Node* node = result.innerNode()) | 1311 if (Node* node = result.innerNode()) |
1312 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); | 1312 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); |
1313 return VisiblePosition(); | 1313 return VisiblePosition(); |
1314 } | 1314 } |
1315 | 1315 |
1316 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() | 1316 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() |
1317 { | 1317 { |
1318 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); | 1318 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo
de(frame(), WebNode(frame()->document()->focusedElement())); |
1319 if (container && container->supportsInputMethod()) | 1319 if (container && container->supportsInputMethod()) |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 { | 2085 { |
2086 m_frameWidget = frameWidget; | 2086 m_frameWidget = frameWidget; |
2087 } | 2087 } |
2088 | 2088 |
2089 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2089 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2090 { | 2090 { |
2091 return m_frameWidget; | 2091 return m_frameWidget; |
2092 } | 2092 } |
2093 | 2093 |
2094 } // namespace blink | 2094 } // namespace blink |
OLD | NEW |