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