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

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 1747283003: Remove redundant codepath for webgl api blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 612
613 613
614 // WebGL ------------------------------------------------------ 614 // WebGL ------------------------------------------------------
615 615
616 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is 616 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is
617 // placed here instead of WebContentSettingsClient because this class is 617 // placed here instead of WebContentSettingsClient because this class is
618 // implemented in content/, and putting it here avoids adding more public 618 // implemented in content/, and putting it here avoids adding more public
619 // content/ APIs. 619 // content/ APIs.
620 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } 620 virtual bool allowWebGL(bool defaultValue) { return defaultValue; }
621 621
622 // Notifies the client that a WebGL context was lost on this page with the
623 // given reason (one of the GL_ARB_robustness status codes; see
624 // Extensions3D.h in WebCore/platform/graphics).
625 virtual void didLoseWebGLContext(int) { }
626
627
628 // Screen Orientation -------------------------------------------------- 622 // Screen Orientation --------------------------------------------------
629 623
630 // Access the embedder API for (client-based) screen orientation client . 624 // Access the embedder API for (client-based) screen orientation client .
631 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } 625 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; }
632 626
633 627
634 // Accessibility ------------------------------------------------------- 628 // Accessibility -------------------------------------------------------
635 629
636 // Notifies embedder about an accessibility event. 630 // Notifies embedder about an accessibility event.
637 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } 631 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 // Mojo ---------------------------------------------------------------- 727 // Mojo ----------------------------------------------------------------
734 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 728 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
735 729
736 protected: 730 protected:
737 virtual ~WebFrameClient() { } 731 virtual ~WebFrameClient() { }
738 }; 732 };
739 733
740 } // namespace blink 734 } // namespace blink
741 735
742 #endif 736 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698