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

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

Issue 51323003: Expose WEBGL_debug_renderer_info through a chromium finch experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix member init order Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebPermissionClient.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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 747
748 return enabledPerSettings; 748 return enabledPerSettings;
749 } 749 }
750 750
751 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas on) 751 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas on)
752 { 752 {
753 if (m_webFrame->client()) 753 if (m_webFrame->client())
754 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 754 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
755 } 755 }
756 756
757 bool FrameLoaderClientImpl::allowWebGLDebugRendererInfo()
758 {
759 WebViewImpl* webview = m_webFrame->viewImpl();
760 if (webview && webview->permissionClient())
761 return webview->permissionClient()->allowWebGLDebugRendererInfo(m_webFra me);
762 return false;
763 }
764
757 void FrameLoaderClientImpl::dispatchWillInsertBody() 765 void FrameLoaderClientImpl::dispatchWillInsertBody()
758 { 766 {
759 if (m_webFrame->client()) 767 if (m_webFrame->client())
760 m_webFrame->client()->willInsertBody(m_webFrame); 768 m_webFrame->client()->willInsertBody(m_webFrame);
761 } 769 }
762 770
763 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) 771 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP rovider(PassOwnPtr<WebServiceWorkerProviderClient> client)
764 { 772 {
765 if (!m_webFrame->client()) 773 if (!m_webFrame->client())
766 return nullptr; 774 return nullptr;
767 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame , client.leakPtr())); 775 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame , client.leakPtr()));
768 } 776 }
769 777
770 void FrameLoaderClientImpl::didStopAllLoaders() 778 void FrameLoaderClientImpl::didStopAllLoaders()
771 { 779 {
772 if (m_webFrame->client()) 780 if (m_webFrame->client())
773 m_webFrame->client()->didAbortLoading(m_webFrame); 781 m_webFrame->client()->didAbortLoading(m_webFrame);
774 } 782 }
775 783
776 } // namespace WebKit 784 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebPermissionClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698