| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #include "public/web/WebUserGestureIndicator.h" | 84 #include "public/web/WebUserGestureIndicator.h" |
| 85 #include "public/web/WebUserGestureToken.h" | 85 #include "public/web/WebUserGestureToken.h" |
| 86 #include "public/web/WebViewClient.h" | 86 #include "public/web/WebViewClient.h" |
| 87 #include "public/web/WebWindowFeatures.h" | 87 #include "public/web/WebWindowFeatures.h" |
| 88 #include "web/ColorChooserPopupUIController.h" | 88 #include "web/ColorChooserPopupUIController.h" |
| 89 #include "web/ColorChooserUIController.h" | 89 #include "web/ColorChooserUIController.h" |
| 90 #include "web/DateTimeChooserImpl.h" | 90 #include "web/DateTimeChooserImpl.h" |
| 91 #include "web/ExternalDateTimeChooser.h" | 91 #include "web/ExternalDateTimeChooser.h" |
| 92 #include "web/ExternalPopupMenu.h" | 92 #include "web/ExternalPopupMenu.h" |
| 93 #include "web/PopupMenuChromium.h" | 93 #include "web/PopupMenuChromium.h" |
| 94 #include "web/PopupMenuImpl.h" | |
| 95 #include "web/WebFileChooserCompletionImpl.h" | 94 #include "web/WebFileChooserCompletionImpl.h" |
| 96 #include "web/WebFrameWidgetImpl.h" | 95 #include "web/WebFrameWidgetImpl.h" |
| 97 #include "web/WebInputEventConversion.h" | 96 #include "web/WebInputEventConversion.h" |
| 98 #include "web/WebLocalFrameImpl.h" | 97 #include "web/WebLocalFrameImpl.h" |
| 99 #include "web/WebPluginContainerImpl.h" | 98 #include "web/WebPluginContainerImpl.h" |
| 100 #include "web/WebPopupMenuImpl.h" | 99 #include "web/WebPopupMenuImpl.h" |
| 101 #include "web/WebSettingsImpl.h" | 100 #include "web/WebSettingsImpl.h" |
| 102 #include "web/WebViewImpl.h" | 101 #include "web/WebViewImpl.h" |
| 103 #include "wtf/text/CString.h" | 102 #include "wtf/text/CString.h" |
| 104 #include "wtf/text/StringBuilder.h" | 103 #include "wtf/text/StringBuilder.h" |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 bool ChromeClientImpl::hasOpenedPopup() const | 736 bool ChromeClientImpl::hasOpenedPopup() const |
| 738 { | 737 { |
| 739 return m_webView->hasOpenedPopup(); | 738 return m_webView->hasOpenedPopup(); |
| 740 } | 739 } |
| 741 | 740 |
| 742 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame&
frame, PopupMenuClient* client) | 741 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame&
frame, PopupMenuClient* client) |
| 743 { | 742 { |
| 744 if (WebViewImpl::useExternalPopupMenus()) | 743 if (WebViewImpl::useExternalPopupMenus()) |
| 745 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, client, *m_webVie
w)); | 744 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, client, *m_webVie
w)); |
| 746 | 745 |
| 747 if (RuntimeEnabledFeatures::htmlPopupMenuEnabled() && RuntimeEnabledFeatures
::pagePopupEnabled()) | |
| 748 return PopupMenuImpl::create(this, client); | |
| 749 | |
| 750 return adoptRefWillBeNoop(new PopupMenuChromium(frame, client)); | 746 return adoptRefWillBeNoop(new PopupMenuChromium(frame, client)); |
| 751 } | 747 } |
| 752 | 748 |
| 753 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) | 749 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) |
| 754 { | 750 { |
| 755 return m_webView->openPagePopup(client, originBoundsInRootView); | 751 return m_webView->openPagePopup(client, originBoundsInRootView); |
| 756 } | 752 } |
| 757 | 753 |
| 758 void ChromeClientImpl::closePagePopup(PagePopup* popup) | 754 void ChromeClientImpl::closePagePopup(PagePopup* popup) |
| 759 { | 755 { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); | 881 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); |
| 886 } | 882 } |
| 887 | 883 |
| 888 void ChromeClientImpl::registerViewportLayers() const | 884 void ChromeClientImpl::registerViewportLayers() const |
| 889 { | 885 { |
| 890 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) | 886 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) |
| 891 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 887 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 892 } | 888 } |
| 893 | 889 |
| 894 } // namespace blink | 890 } // namespace blink |
| OLD | NEW |