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

Side by Side Diff: public/platform/Platform.h

Issue 16841007: Add platform APIs for the unprefixed EME APIs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: return sessionId by value Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | public/platform/WebContentDecryptionModule.h » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "WebSpeechSynthesizer.h" 44 #include "WebSpeechSynthesizer.h"
45 #include "WebString.h" 45 #include "WebString.h"
46 #include "WebVector.h" 46 #include "WebVector.h"
47 47
48 class GrContext; 48 class GrContext;
49 49
50 namespace WebKit { 50 namespace WebKit {
51 51
52 class WebAudioBus; 52 class WebAudioBus;
53 class WebBlobRegistry; 53 class WebBlobRegistry;
54 class WebContentDecryptionModule;
54 class WebClipboard; 55 class WebClipboard;
55 class WebCompositorSupport; 56 class WebCompositorSupport;
56 class WebCookieJar; 57 class WebCookieJar;
57 class WebDeviceMotionListener; 58 class WebDeviceMotionListener;
58 class WebDiscardableMemory; 59 class WebDiscardableMemory;
59 class WebFallbackThemeEngine; 60 class WebFallbackThemeEngine;
60 class WebFileSystem; 61 class WebFileSystem;
61 class WebFileUtilities; 62 class WebFileUtilities;
62 class WebFlingAnimator; 63 class WebFlingAnimator;
63 class WebGestureCurveTarget; 64 class WebGestureCurveTarget;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual WebThemeEngine* themeEngine() { return 0; } 123 virtual WebThemeEngine* themeEngine() { return 0; }
123 124
124 virtual WebFallbackThemeEngine* fallbackThemeEngine() { return 0; } 125 virtual WebFallbackThemeEngine* fallbackThemeEngine() { return 0; }
125 126
126 // Must return non-null. 127 // Must return non-null.
127 virtual WebHyphenator* hyphenator() { return 0; } 128 virtual WebHyphenator* hyphenator() { return 0; }
128 129
129 // May return null. 130 // May return null.
130 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl ient*) { return 0; } 131 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl ient*) { return 0; }
131 132
133
134 // Media --------------------------------------------------------------
135
136 // May return null.
137 virtual WebContentDecryptionModule* createContentDecryptionModule(const WebS tring& keySystem) { return 0; }
138
139
132 // Audio -------------------------------------------------------------- 140 // Audio --------------------------------------------------------------
133 141
134 virtual double audioHardwareSampleRate() { return 0; } 142 virtual double audioHardwareSampleRate() { return 0; }
135 virtual size_t audioHardwareBufferSize() { return 0; } 143 virtual size_t audioHardwareBufferSize() { return 0; }
136 virtual unsigned audioHardwareOutputChannels() { return 0; } 144 virtual unsigned audioHardwareOutputChannels() { return 0; }
137 145
138 // Creates a device for audio I/O. 146 // Creates a device for audio I/O.
139 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 147 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
140 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; } 148 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; }
141 149
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // If null, the platform stops providing device motion data to the current l istener. 531 // If null, the platform stops providing device motion data to the current l istener.
524 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } 532 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
525 533
526 protected: 534 protected:
527 virtual ~Platform() { } 535 virtual ~Platform() { }
528 }; 536 };
529 537
530 } // namespace WebKit 538 } // namespace WebKit
531 539
532 #endif 540 #endif
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebContentDecryptionModule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698