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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 19023003: Use a mock WebAudioDevice for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index de1ecfc62ea9902cfb5491fc5723e3a653d87d57..6b5a8365d6f9a41028c26bf68fe97e542fb66709 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -26,6 +26,7 @@ class MessageLoop;
}
namespace WebKit {
+class WebAudioDevice;
class WebClipboard;
class WebFrame;
class WebHyphenator;
@@ -141,6 +142,11 @@ class CONTENT_EXPORT ContentRendererClient {
virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor(
WebKit::WebMIDIAccessorClient* client);
+ // Allows the embedder to override creating a WebAudioDevice. If it
+ // returns NULL the content layer will create the audio device.
+ virtual WebKit::WebAudioDevice* OverrideCreateAudioDevice(
+ double sample_rate);
+
// Allows the embedder to override the WebKit::WebClipboard used. If it
// returns NULL the content layer will handle clipboard interactions.
virtual WebKit::WebClipboard* OverrideWebClipboard();
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698