| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 return; | 299 return; |
| 300 | 300 |
| 301 WebURL url; | 301 WebURL url; |
| 302 // Find out if the mouse is over a link, and if so, let our UI know... | 302 // Find out if the mouse is over a link, and if so, let our UI know... |
| 303 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) | 303 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) |
| 304 url = result.absoluteLinkURL(); | 304 url = result.absoluteLinkURL(); |
| 305 | 305 |
| 306 m_webView->client()->setMouseOverURL(url); | 306 m_webView->client()->setMouseOverURL(url); |
| 307 } | 307 } |
| 308 | 308 |
| 309 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) | |
| 310 { | |
| 311 if (m_webView->client()) | |
| 312 m_webView->client()->setToolTipText(tooltipText, toWebTextDirection(dir)
); | |
| 313 } | |
| 314 | |
| 315 void ChromeClientImpl::setCursor(const Cursor& cursor) | 309 void ChromeClientImpl::setCursor(const Cursor& cursor) |
| 316 { | 310 { |
| 317 setCursor(WebCursorInfo(cursor)); | 311 setCursor(WebCursorInfo(cursor)); |
| 318 } | 312 } |
| 319 | 313 |
| 320 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) | 314 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) |
| 321 { | 315 { |
| 322 if (m_webView->client()) | 316 if (m_webView->client()) |
| 323 m_webView->client()->didChangeCursor(cursor); | 317 m_webView->client()->didChangeCursor(cursor); |
| 324 } | 318 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 webFrame->client()->forwardInputEvent(&webEvent); | 370 webFrame->client()->forwardInputEvent(&webEvent); |
| 377 } else if (event->isWheelEvent()) { | 371 } else if (event->isWheelEvent()) { |
| 378 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 372 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 379 if (webEvent.type == WebInputEvent::Undefined) | 373 if (webEvent.type == WebInputEvent::Undefined) |
| 380 return; | 374 return; |
| 381 webFrame->client()->forwardInputEvent(&webEvent); | 375 webFrame->client()->forwardInputEvent(&webEvent); |
| 382 } | 376 } |
| 383 } | 377 } |
| 384 | 378 |
| 385 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |