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

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

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
« no previous file with comments | « 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // This call is placed here instead of WebPermissionClient because this 363 // This call is placed here instead of WebPermissionClient because this
364 // class is implemented in content/, and putting it here avoids adding 364 // class is implemented in content/, and putting it here avoids adding
365 // more public content/ APIs. 365 // more public content/ APIs.
366 virtual bool allowWebGL(WebFrame*, bool defaultValue) { return defaultValue; } 366 virtual bool allowWebGL(WebFrame*, bool defaultValue) { return defaultValue; }
367 367
368 // Notifies the client that a WebGL context was lost on this page with the 368 // Notifies the client that a WebGL context was lost on this page with the
369 // given reason (one of the GL_ARB_robustness status codes; see 369 // given reason (one of the GL_ARB_robustness status codes; see
370 // Extensions3D.h in WebCore/platform/graphics). 370 // Extensions3D.h in WebCore/platform/graphics).
371 virtual void didLoseWebGLContext(WebFrame*, int) { } 371 virtual void didLoseWebGLContext(WebFrame*, int) { }
372 372
373 // Asks if the WebGL extension WEBGL_debug_renderer_info is allowed
374 // for the given WebFrame.
375 virtual bool allowWebGLDebugRendererInfo(WebFrame*) { return false; }
abarth-chromium 2013/10/30 06:36:16 I don't think this is the right place. Let me dig
376
373 protected: 377 protected:
374 ~WebFrameClient() { } 378 ~WebFrameClient() { }
375 }; 379 };
376 380
377 } // namespace WebKit 381 } // namespace WebKit
378 382
379 #endif 383 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698