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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "core/page/FrameView.h" | 79 #include "core/page/FrameView.h" |
80 #include "core/page/Page.h" | 80 #include "core/page/Page.h" |
81 #include "core/page/PagePopupDriver.h" | 81 #include "core/page/PagePopupDriver.h" |
82 #include "core/page/Settings.h" | 82 #include "core/page/Settings.h" |
83 #include "core/page/WindowFeatures.h" | 83 #include "core/page/WindowFeatures.h" |
84 #include "core/platform/ColorChooser.h" | 84 #include "core/platform/ColorChooser.h" |
85 #include "core/platform/ColorChooserClient.h" | 85 #include "core/platform/ColorChooserClient.h" |
86 #include "core/platform/Cursor.h" | 86 #include "core/platform/Cursor.h" |
87 #include "core/platform/DateTimeChooser.h" | 87 #include "core/platform/DateTimeChooser.h" |
88 #include "core/platform/FileChooser.h" | 88 #include "core/platform/FileChooser.h" |
| 89 #include "core/platform/NotImplemented.h" |
89 #include "core/platform/PlatformScreen.h" | 90 #include "core/platform/PlatformScreen.h" |
90 #include "core/platform/chromium/support/WrappedResourceRequest.h" | 91 #include "core/platform/chromium/support/WrappedResourceRequest.h" |
91 #include "core/platform/graphics/FloatRect.h" | 92 #include "core/platform/graphics/FloatRect.h" |
92 #include "core/platform/graphics/GraphicsLayer.h" | 93 #include "core/platform/graphics/GraphicsLayer.h" |
93 #include "core/platform/graphics/IntRect.h" | 94 #include "core/platform/graphics/IntRect.h" |
94 #include "core/rendering/HitTestResult.h" | 95 #include "core/rendering/HitTestResult.h" |
95 #include "core/rendering/RenderWidget.h" | 96 #include "core/rendering/RenderWidget.h" |
96 #include "modules/geolocation/Geolocation.h" | 97 #include "modules/geolocation/Geolocation.h" |
97 #include "public/platform/Platform.h" | 98 #include "public/platform/Platform.h" |
98 #include "public/platform/WebRect.h" | 99 #include "public/platform/WebRect.h" |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 | 1001 |
1001 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
bView) | 1002 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
bView) |
1002 : m_webView(webView) | 1003 : m_webView(webView) |
1003 { | 1004 { |
1004 } | 1005 } |
1005 | 1006 |
1006 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1007 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1007 { | 1008 { |
1008 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1009 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1009 } | 1010 } |
| 1011 |
| 1012 #if ENABLE(CUSTOM_SCHEME_HANDLER) |
| 1013 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl
::isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const
String& url) |
| 1014 { |
| 1015 notImplemented(); |
| 1016 return NavigatorContentUtilsClient::CustomHandlersDeclined; |
| 1017 } |
| 1018 |
| 1019 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const String& baseURL, const String& url) |
| 1020 { |
| 1021 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
| 1022 } |
| 1023 #endif |
1010 #endif | 1024 #endif |
1011 | 1025 |
1012 } // namespace WebKit | 1026 } // namespace WebKit |
OLD | NEW |