| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); | 549 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 } | 552 } |
| 553 | 553 |
| 554 m_webView->client()->setMouseOverURL(url); | 554 m_webView->client()->setMouseOverURL(url); |
| 555 } | 555 } |
| 556 | 556 |
| 557 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) | 557 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) |
| 558 { | 558 { |
| 559 if (!m_webView->client()) | 559 if (m_webView->client()) |
| 560 return; | 560 m_webView->client()->setToolTipText(tooltipText, toWebTextDirection(dir)
); |
| 561 WebTextDirection textDirection = (dir == RTL) ? | |
| 562 WebTextDirectionRightToLeft : | |
| 563 WebTextDirectionLeftToRight; | |
| 564 m_webView->client()->setToolTipText( | |
| 565 tooltipText, textDirection); | |
| 566 } | 561 } |
| 567 | 562 |
| 568 void ChromeClientImpl::dispatchViewportPropertiesDidChange(const ViewportDescrip
tion& description) const | 563 void ChromeClientImpl::dispatchViewportPropertiesDidChange(const ViewportDescrip
tion& description) const |
| 569 { | 564 { |
| 570 m_webView->updatePageDefinedViewportConstraints(description); | 565 m_webView->updatePageDefinedViewportConstraints(description); |
| 571 } | 566 } |
| 572 | 567 |
| 573 void ChromeClientImpl::print(LocalFrame* frame) | 568 void ChromeClientImpl::print(LocalFrame* frame) |
| 574 { | 569 { |
| 575 if (m_webView->client()) | 570 if (m_webView->client()) |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
| 875 } | 870 } |
| 876 | 871 |
| 877 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
| 878 { | 873 { |
| 879 if (m_webView->autofillClient()) | 874 if (m_webView->autofillClient()) |
| 880 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
| 881 } | 876 } |
| 882 | 877 |
| 883 } // namespace blink | 878 } // namespace blink |
| OLD | NEW |