| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 489 |
| 490 void WebLocalFrameImpl::setCaretVisible(bool visible) | 490 void WebLocalFrameImpl::setCaretVisible(bool visible) |
| 491 { | 491 { |
| 492 frame()->selection().setCaretVisible(visible); | 492 frame()->selection().setCaretVisible(visible); |
| 493 } | 493 } |
| 494 | 494 |
| 495 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) | 495 VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint&
point) |
| 496 { | 496 { |
| 497 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; | 497 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H
itTestRequest::Active | HitTestRequest::IgnoreClipping; |
| 498 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(Float
Point(point)))); | 498 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(Float
Point(point)))); |
| 499 frame()->document()->renderView()->layer()->hitTest(request, result); | 499 frame()->document()->renderView()->layer()->hitTest(request, result.hitTestL
ocation(), result); |
| 500 | 500 |
| 501 if (Node* node = result.targetNode()) | 501 if (Node* node = result.targetNode()) |
| 502 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); | 502 return frame()->selection().selection().visiblePositionRespectingEditing
Boundary(result.localPoint(), node); |
| 503 return VisiblePosition(); | 503 return VisiblePosition(); |
| 504 } | 504 } |
| 505 | 505 |
| 506 WebString WebLocalFrameImpl::contentAsText(size_t maxChars) const | 506 WebString WebLocalFrameImpl::contentAsText(size_t maxChars) const |
| 507 { | 507 { |
| 508 if (!frame()) | 508 if (!frame()) |
| 509 return WebString(); | 509 return WebString(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 610 |
| 611 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse
t, float contentScaleFactor) | 611 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse
t, float contentScaleFactor) |
| 612 { | 612 { |
| 613 m_inputEventsOffsetForEmulation = offset; | 613 m_inputEventsOffsetForEmulation = offset; |
| 614 m_inputEventsScaleFactorForEmulation = contentScaleFactor; | 614 m_inputEventsScaleFactorForEmulation = contentScaleFactor; |
| 615 if (frame()->view()) | 615 if (frame()->view()) |
| 616 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset
ForEmulation, m_inputEventsScaleFactorForEmulation); | 616 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset
ForEmulation, m_inputEventsScaleFactorForEmulation); |
| 617 } | 617 } |
| 618 | 618 |
| 619 } // namespace blink | 619 } // namespace blink |
| OLD | NEW |