Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 331223002: NavigatorContentUtilsClientImpl has own files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/NavigatorContentUtilsClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 { 880 {
881 if (m_webView->autofillClient()) 881 if (m_webView->autofillClient())
882 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put)); 882 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put));
883 } 883 }
884 884
885 bool ChromeClientImpl::usesGpuRasterization() 885 bool ChromeClientImpl::usesGpuRasterization()
886 { 886 {
887 return m_webView->layerTreeView()->usesGpuRasterization(); 887 return m_webView->layerTreeView()->usesGpuRasterization();
888 } 888 }
889 889
890 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre ate(WebViewImpl* webView)
891 {
892 return adoptPtr(new NavigatorContentUtilsClientImpl(webView));
893 }
894
895 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView)
896 : m_webView(webView)
897 {
898 }
899
900 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const WebCore::KURL& baseURL, const WebCore::KURL& url, const String& title)
901 {
902 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
903 }
904
905 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const WebCore::KURL& baseURL , const WebCore::KURL& url)
906 {
907 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
908 }
909
910 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
911 {
912 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
913 }
914
915
916 } // namespace blink 890 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/NavigatorContentUtilsClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698