Chromium Code Reviews| Index: Source/core/page/FormatConsoleMessage.h |
| diff --git a/Source/modules/webmidi/MIDIClient.h b/Source/core/page/FormatConsoleMessage.h |
| similarity index 80% |
| copy from Source/modules/webmidi/MIDIClient.h |
| copy to Source/core/page/FormatConsoleMessage.h |
| index 5c797c4fb22a1b126728355b4f091546ec007d5f..13fdac0e2b917945731ec5f1a9ea83f400240775 100644 |
| --- a/Source/modules/webmidi/MIDIClient.h |
| +++ b/Source/core/page/FormatConsoleMessage.h |
| @@ -28,27 +28,21 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef MIDIClient_h |
| -#define MIDIClient_h |
| +#ifndef FormatConsoleMessage_h |
| +#define FormatConsoleMessage_h |
| #include "wtf/PassRefPtr.h" |
| -namespace WebCore { |
| - |
| -class MIDIAccess; |
| -class Page; |
| +namespace WTF { |
| +class String; |
| +} // namespace WTF |
| -class MIDIClient { |
| -public: |
| - virtual void requestSysExPermission(PassRefPtr<MIDIAccess>) = 0; |
| - virtual void cancelSysExPermissionRequest(MIDIAccess*) = 0; |
| - |
| -protected: |
| - virtual ~MIDIClient() { } |
| -}; |
| +namespace WebCore { |
| +class ScriptCallStack; |
| -void provideMIDITo(Page*, MIDIClient*); |
| +WTF::String formatConsoleMessage(const WTF::String& originalMessage, PassRefPtr<ScriptCallStack>); |
|
pfeldman
2013/08/14 09:53:00
It was fine to make it static on PageConsole.
Devlin
2013/08/14 17:00:40
Okay. Moved there.
|
| +WTF::String formatConsoleMessage(const WTF::String& originalMessage, const WTF::String& url, unsigned lineNumber, unsigned columnNumber); |
| } // namespace WebCore |
| -#endif // MIDIClient_h |
| +#endif // FormatConsoleMessage_h |