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

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: 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
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 if (m_webFrame->client())
760 return m_webFrame->client()->allowWebGLDebugRendererInfo(m_webFrame);
761 return false;
762 }
763
757 void FrameLoaderClientImpl::dispatchWillInsertBody() 764 void FrameLoaderClientImpl::dispatchWillInsertBody()
758 { 765 {
759 if (m_webFrame->client()) 766 if (m_webFrame->client())
760 m_webFrame->client()->willInsertBody(m_webFrame); 767 m_webFrame->client()->willInsertBody(m_webFrame);
761 } 768 }
762 769
763 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) 770 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP rovider(PassOwnPtr<WebServiceWorkerProviderClient> client)
764 { 771 {
765 if (!m_webFrame->client()) 772 if (!m_webFrame->client())
766 return nullptr; 773 return nullptr;
767 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame , client.leakPtr())); 774 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame , client.leakPtr()));
768 } 775 }
769 776
770 void FrameLoaderClientImpl::didStopAllLoaders() 777 void FrameLoaderClientImpl::didStopAllLoaders()
771 { 778 {
772 if (m_webFrame->client()) 779 if (m_webFrame->client())
773 m_webFrame->client()->didAbortLoading(m_webFrame); 780 m_webFrame->client()->didAbortLoading(m_webFrame);
774 } 781 }
775 782
776 } // namespace WebKit 783 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698