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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 } | 861 } |
862 | 862 |
863 bool ChromeClientImpl::hasOpenedPopup() const | 863 bool ChromeClientImpl::hasOpenedPopup() const |
864 { | 864 { |
865 return m_webView->hasOpenedPopup(); | 865 return m_webView->hasOpenedPopup(); |
866 } | 866 } |
867 | 867 |
868 PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuC
lient* client) const | 868 PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuC
lient* client) const |
869 { | 869 { |
870 if (WebViewImpl::useExternalPopupMenus()) | 870 if (WebViewImpl::useExternalPopupMenus()) |
871 return adoptRef(new ExternalPopupMenu(frame, client, m_webView->client()
)); | 871 return adoptRef(new ExternalPopupMenu(frame, client, *m_webView)); |
872 | 872 |
873 return adoptRef(new PopupMenuChromium(frame, client)); | 873 return adoptRef(new PopupMenuChromium(frame, client)); |
874 } | 874 } |
875 | 875 |
876 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) | 876 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client, const IntRec
t& originBoundsInRootView) |
877 { | 877 { |
878 ASSERT(m_pagePopupDriver); | 878 ASSERT(m_pagePopupDriver); |
879 return m_pagePopupDriver->openPagePopup(client, originBoundsInRootView); | 879 return m_pagePopupDriver->openPagePopup(client, originBoundsInRootView); |
880 } | 880 } |
881 | 881 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 { | 1048 { |
1049 } | 1049 } |
1050 | 1050 |
1051 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1051 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1052 { | 1052 { |
1053 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1053 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1054 } | 1054 } |
1055 #endif | 1055 #endif |
1056 | 1056 |
1057 } // namespace blink | 1057 } // namespace blink |
OLD | NEW |