| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 lineNumber, | 258 lineNumber, |
| 259 stackTrace); | 259 stackTrace); |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 bool ChromeClientImpl::tabsToLinks() | 263 bool ChromeClientImpl::tabsToLinks() |
| 264 { | 264 { |
| 265 return m_webView->tabsToLinks(); | 265 return m_webView->tabsToLinks(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 void ChromeClientImpl::invalidateContentsAndRootView(const IntRect& updateRect) | |
| 269 { | |
| 270 if (updateRect.isEmpty()) | |
| 271 return; | |
| 272 m_webView->invalidateRect(updateRect); | |
| 273 } | |
| 274 | |
| 275 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) | |
| 276 { | |
| 277 invalidateContentsAndRootView(updateRect); | |
| 278 } | |
| 279 | |
| 280 void ChromeClientImpl::scheduleAnimation() | 268 void ChromeClientImpl::scheduleAnimation() |
| 281 { | 269 { |
| 282 m_webView->scheduleAnimation(); | 270 m_webView->scheduleAnimation(); |
| 283 } | 271 } |
| 284 | 272 |
| 285 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const | 273 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const |
| 286 { | 274 { |
| 287 IntRect screenRect(rect); | 275 IntRect screenRect(rect); |
| 288 | 276 |
| 289 if (m_webView->client()) { | 277 if (m_webView->client()) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 webFrame->client()->forwardInputEvent(&webEvent); | 376 webFrame->client()->forwardInputEvent(&webEvent); |
| 389 } else if (event->isWheelEvent()) { | 377 } else if (event->isWheelEvent()) { |
| 390 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 378 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 391 if (webEvent.type == WebInputEvent::Undefined) | 379 if (webEvent.type == WebInputEvent::Undefined) |
| 392 return; | 380 return; |
| 393 webFrame->client()->forwardInputEvent(&webEvent); | 381 webFrame->client()->forwardInputEvent(&webEvent); |
| 394 } | 382 } |
| 395 } | 383 } |
| 396 | 384 |
| 397 } // namespace blink | 385 } // namespace blink |
| OLD | NEW |