| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) | 348 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) |
| 349 { | 349 { |
| 350 m_webView->setRootGraphicsLayer(rootLayer); | 350 m_webView->setRootGraphicsLayer(rootLayer); |
| 351 } | 351 } |
| 352 | 352 |
| 353 void ChromeClientImpl::clearCompositedSelectionBounds() | 353 void ChromeClientImpl::clearCompositedSelectionBounds() |
| 354 { | 354 { |
| 355 m_webView->clearCompositedSelectionBounds(); | 355 m_webView->clearCompositedSelectionBounds(); |
| 356 } | 356 } |
| 357 | 357 |
| 358 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) | |
| 359 { | |
| 360 m_webView->hasTouchEventHandlers(needsTouchEvents); | |
| 361 } | |
| 362 | |
| 363 void ChromeClientImpl::setTouchAction(TouchAction touchAction) | 358 void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
| 364 { | 359 { |
| 365 if (WebViewClient* client = m_webView->client()) { | 360 if (WebViewClient* client = m_webView->client()) { |
| 366 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction)
; | 361 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction)
; |
| 367 client->setTouchAction(webTouchAction); | 362 client->setTouchAction(webTouchAction); |
| 368 } | 363 } |
| 369 } | 364 } |
| 370 | 365 |
| 371 void ChromeClientImpl::willSetInputMethodState() | 366 void ChromeClientImpl::willSetInputMethodState() |
| 372 { | 367 { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 webFrame->client()->forwardInputEvent(&webEvent); | 403 webFrame->client()->forwardInputEvent(&webEvent); |
| 409 } else if (event->isWheelEvent()) { | 404 } else if (event->isWheelEvent()) { |
| 410 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 405 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 411 if (webEvent.type == WebInputEvent::Undefined) | 406 if (webEvent.type == WebInputEvent::Undefined) |
| 412 return; | 407 return; |
| 413 webFrame->client()->forwardInputEvent(&webEvent); | 408 webFrame->client()->forwardInputEvent(&webEvent); |
| 414 } | 409 } |
| 415 } | 410 } |
| 416 | 411 |
| 417 } // namespace blink | 412 } // namespace blink |
| OLD | NEW |