Chromium Code Reviews| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 485 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect ) | 485 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect ) |
| 486 { | 486 { |
| 487 invalidateContentsAndRootView(updateRect); | 487 invalidateContentsAndRootView(updateRect); |
| 488 } | 488 } |
| 489 | 489 |
| 490 void ChromeClientImpl::scheduleAnimation() | 490 void ChromeClientImpl::scheduleAnimation() |
| 491 { | 491 { |
| 492 m_webView->scheduleAnimation(); | 492 m_webView->scheduleAnimation(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 void ChromeClientImpl::scheduleAnimationForFrame(LocalFrame* localFrameRoot) | |
|
dcheng
2014/11/26 18:20:00
localRoot
kenrb
2014/12/02 17:49:43
Done.
| |
| 496 { | |
| 497 // FIXME: This will proxy to a WebWidget attached to the WebLocalFrameImpl. | |
| 498 scheduleAnimation(); | |
| 499 } | |
| 500 | |
| 495 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const | 501 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const |
| 496 { | 502 { |
| 497 IntRect screenRect(rect); | 503 IntRect screenRect(rect); |
| 498 | 504 |
| 499 if (m_webView->client()) { | 505 if (m_webView->client()) { |
| 500 WebRect windowRect = m_webView->client()->windowRect(); | 506 WebRect windowRect = m_webView->client()->windowRect(); |
| 501 screenRect.move(windowRect.x, windowRect.y); | 507 screenRect.move(windowRect.x, windowRect.y); |
| 502 } | 508 } |
| 503 | 509 |
| 504 return screenRect; | 510 return screenRect; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 683 if (pluginContainer) | 689 if (pluginContainer) |
| 684 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh angArea, verticalOverhangArea, dirtyRect); | 690 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh angArea, verticalOverhangArea, dirtyRect); |
| 685 return false; | 691 return false; |
| 686 } | 692 } |
| 687 | 693 |
| 688 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const | 694 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const |
| 689 { | 695 { |
| 690 return m_webView->graphicsLayerFactory(); | 696 return m_webView->graphicsLayerFactory(); |
| 691 } | 697 } |
| 692 | 698 |
| 693 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) | 699 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr ame* frame) |
|
dcheng
2014/11/26 18:20:00
localRoot
kenrb
2014/12/02 17:49:43
Done.
| |
| 694 { | 700 { |
| 701 // FIXME: Add call to frame's widget for non-zero frames. | |
| 695 m_webView->setRootGraphicsLayer(rootLayer); | 702 m_webView->setRootGraphicsLayer(rootLayer); |
| 696 } | 703 } |
| 697 | 704 |
| 698 void ChromeClientImpl::enterFullScreenForElement(Element* element) | 705 void ChromeClientImpl::enterFullScreenForElement(Element* element) |
| 699 { | 706 { |
| 700 m_webView->enterFullScreenForElement(element); | 707 m_webView->enterFullScreenForElement(element); |
| 701 } | 708 } |
| 702 | 709 |
| 703 void ChromeClientImpl::exitFullScreenForElement(Element* element) | 710 void ChromeClientImpl::exitFullScreenForElement(Element* element) |
| 704 { | 711 { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 874 } | 881 } |
| 875 | 882 |
| 876 void ChromeClientImpl::textFieldDataListChanged(HTMLFormControlElement& element) | 883 void ChromeClientImpl::textFieldDataListChanged(HTMLFormControlElement& element) |
| 877 { | 884 { |
| 878 if (!m_webView->autofillClient()) | 885 if (!m_webView->autofillClient()) |
| 879 return; | 886 return; |
| 880 m_webView->autofillClient()->textFieldDidChange(WebFormControlElement(&eleme nt)); | 887 m_webView->autofillClient()->textFieldDidChange(WebFormControlElement(&eleme nt)); |
| 881 } | 888 } |
| 882 | 889 |
| 883 } // namespace blink | 890 } // namespace blink |
| OLD | NEW |