| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 // FIXME: delete these lines once Chrome only uses the frame client interfac
e, above. | 658 // FIXME: delete these lines once Chrome only uses the frame client interfac
e, above. |
| 659 if (m_webView->client()) | 659 if (m_webView->client()) |
| 660 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); | 660 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); |
| 661 } | 661 } |
| 662 | 662 |
| 663 String ChromeClientImpl::acceptLanguages() | 663 String ChromeClientImpl::acceptLanguages() |
| 664 { | 664 { |
| 665 return m_webView->client()->acceptLanguages(); | 665 return m_webView->client()->acceptLanguages(); |
| 666 } | 666 } |
| 667 | 667 |
| 668 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I
ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe
ct& dirtyRect) | |
| 669 { | |
| 670 LocalFrame* frame = m_webView->mainFrameImpl()->frame(); | |
| 671 WebPluginContainerImpl* pluginContainer = WebLocalFrameImpl::pluginContainer
FromFrame(frame); | |
| 672 if (pluginContainer) | |
| 673 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh
angArea, verticalOverhangArea, dirtyRect); | |
| 674 return false; | |
| 675 } | |
| 676 | |
| 677 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const | 668 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const |
| 678 { | 669 { |
| 679 return m_webView->graphicsLayerFactory(); | 670 return m_webView->graphicsLayerFactory(); |
| 680 } | 671 } |
| 681 | 672 |
| 682 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr
ame* localRoot) | 673 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr
ame* localRoot) |
| 683 { | 674 { |
| 684 // FIXME: For top-level frames we still use the WebView as a WebWidget. This
special | 675 // FIXME: For top-level frames we still use the WebView as a WebWidget. This
special |
| 685 // case will be removed when top-level frames get WebFrameWidgets. | 676 // case will be removed when top-level frames get WebFrameWidgets. |
| 686 if (localRoot->isMainFrame()) { | 677 if (localRoot->isMainFrame()) { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 910 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 920 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 911 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 921 } | 912 } |
| 922 | 913 |
| 923 void ChromeClientImpl::didUpdateTopControls() const | 914 void ChromeClientImpl::didUpdateTopControls() const |
| 924 { | 915 { |
| 925 m_webView->didUpdateTopControls(); | 916 m_webView->didUpdateTopControls(); |
| 926 } | 917 } |
| 927 | 918 |
| 928 } // namespace blink | 919 } // namespace blink |
| OLD | NEW |