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

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: better handle 'exit_on_context_lost' Created 4 years, 9 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
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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 598
599 599
600 // WebGL ------------------------------------------------------ 600 // WebGL ------------------------------------------------------
601 601
602 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is 602 // Asks the embedder whether WebGL is allowed for the WebFrame. This call is
603 // placed here instead of WebContentSettingsClient because this class is 603 // placed here instead of WebContentSettingsClient because this class is
604 // implemented in content/, and putting it here avoids adding more public 604 // implemented in content/, and putting it here avoids adding more public
605 // content/ APIs. 605 // content/ APIs.
606 virtual bool allowWebGL(bool defaultValue) { return defaultValue; } 606 virtual bool allowWebGL(bool defaultValue) { return defaultValue; }
607 607
608 // Notifies the client that a WebGL context was lost on this page with the
609 // given reason (one of the GL_ARB_robustness status codes; see
610 // Extensions3D.h in WebCore/platform/graphics).
611 virtual void didLoseWebGLContext(int) { }
612
613
614 // Screen Orientation -------------------------------------------------- 608 // Screen Orientation --------------------------------------------------
615 609
616 // Access the embedder API for (client-based) screen orientation client . 610 // Access the embedder API for (client-based) screen orientation client .
617 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } 611 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; }
618 612
619 613
620 // Accessibility ------------------------------------------------------- 614 // Accessibility -------------------------------------------------------
621 615
622 // Notifies embedder about an accessibility event. 616 // Notifies embedder about an accessibility event.
623 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } 617 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 // This method takes ownership of the callbacks pointer. 704 // This method takes ownership of the callbacks pointer.
711 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 705 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
712 706
713 protected: 707 protected:
714 virtual ~WebFrameClient() { } 708 virtual ~WebFrameClient() { }
715 }; 709 };
716 710
717 } // namespace blink 711 } // namespace blink
718 712
719 #endif 713 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698