| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 { | 334 { |
| 335 if (m_webView->client()) | 335 if (m_webView->client()) |
| 336 m_webView->client()->didChangeCursor(cursor); | 336 m_webView->client()->didChangeCursor(cursor); |
| 337 } | 337 } |
| 338 | 338 |
| 339 String ChromeClientImpl::acceptLanguages() | 339 String ChromeClientImpl::acceptLanguages() |
| 340 { | 340 { |
| 341 return m_webView->client()->acceptLanguages(); | 341 return m_webView->client()->acceptLanguages(); |
| 342 } | 342 } |
| 343 | 343 |
| 344 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const | |
| 345 { | |
| 346 return m_webView->graphicsLayerFactory(); | |
| 347 } | |
| 348 | |
| 349 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) | |
| 350 { | |
| 351 m_webView->setRootGraphicsLayer(rootLayer); | |
| 352 } | |
| 353 | |
| 354 void ChromeClientImpl::setTouchAction(TouchAction touchAction) | 344 void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
| 355 { | 345 { |
| 356 if (WebViewClient* client = m_webView->client()) { | 346 if (WebViewClient* client = m_webView->client()) { |
| 357 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction)
; | 347 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction)
; |
| 358 client->setTouchAction(webTouchAction); | 348 client->setTouchAction(webTouchAction); |
| 359 } | 349 } |
| 360 } | 350 } |
| 361 | 351 |
| 362 void ChromeClientImpl::willSetInputMethodState() | 352 void ChromeClientImpl::willSetInputMethodState() |
| 363 { | 353 { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 webFrame->client()->forwardInputEvent(&webEvent); | 389 webFrame->client()->forwardInputEvent(&webEvent); |
| 400 } else if (event->isWheelEvent()) { | 390 } else if (event->isWheelEvent()) { |
| 401 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 391 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 402 if (webEvent.type == WebInputEvent::Undefined) | 392 if (webEvent.type == WebInputEvent::Undefined) |
| 403 return; | 393 return; |
| 404 webFrame->client()->forwardInputEvent(&webEvent); | 394 webFrame->client()->forwardInputEvent(&webEvent); |
| 405 } | 395 } |
| 406 } | 396 } |
| 407 | 397 |
| 408 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |