| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 381 |
| 382 void WebPopupMenuImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) | 382 void WebPopupMenuImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) |
| 383 { | 383 { |
| 384 invalidateContentsAndRootView(updateRect); | 384 invalidateContentsAndRootView(updateRect); |
| 385 } | 385 } |
| 386 | 386 |
| 387 void WebPopupMenuImpl::scheduleAnimation() | 387 void WebPopupMenuImpl::scheduleAnimation() |
| 388 { | 388 { |
| 389 } | 389 } |
| 390 | 390 |
| 391 void WebPopupMenuImpl::scroll(const IntSize& scrollDelta, const IntRect& scrollR
ect, const IntRect& clipRect) | 391 void WebPopupMenuImpl::scroll(const IntRect& clipRect) |
| 392 { | 392 { |
| 393 if (m_client) { | |
| 394 int dx = scrollDelta.width(); | |
| 395 int dy = scrollDelta.height(); | |
| 396 m_client->didScrollRect(dx, dy, clipRect); | |
| 397 } | |
| 398 if (m_rootLayer) | 393 if (m_rootLayer) |
| 399 m_rootLayer->layer()->invalidateRect(FloatRect(clipRect)); | 394 m_rootLayer->layer()->invalidateRect(FloatRect(clipRect)); |
| 400 } | 395 } |
| 401 | 396 |
| 402 IntRect WebPopupMenuImpl::rootViewToScreen(const IntRect& rect) const | 397 IntRect WebPopupMenuImpl::rootViewToScreen(const IntRect& rect) const |
| 403 { | 398 { |
| 404 notImplemented(); | 399 notImplemented(); |
| 405 return IntRect(); | 400 return IntRect(); |
| 406 } | 401 } |
| 407 | 402 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 418 ASSERT(widget == m_widget); | 413 ASSERT(widget == m_widget); |
| 419 if (m_widget) { | 414 if (m_widget) { |
| 420 m_widget->setClient(0); | 415 m_widget->setClient(0); |
| 421 m_widget = 0; | 416 m_widget = 0; |
| 422 } | 417 } |
| 423 if (m_client) | 418 if (m_client) |
| 424 m_client->closeWidgetSoon(); | 419 m_client->closeWidgetSoon(); |
| 425 } | 420 } |
| 426 | 421 |
| 427 } // namespace blink | 422 } // namespace blink |
| OLD | NEW |