| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2  * Copyright (C) 2008 Apple 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 | 5  * modification, are permitted provided that the following conditions | 
| 6  * are met: | 6  * are met: | 
| 7  * 1. Redistributions of source code must retain the above copyright | 7  * 1. Redistributions of source code must retain the above copyright | 
| 8  *    notice, this list of conditions and the following disclaimer. | 8  *    notice, this list of conditions and the following disclaimer. | 
| 9  * 2. Redistributions in binary form must reproduce the above copyright | 9  * 2. Redistributions in binary form must reproduce the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer in the | 10  *    notice, this list of conditions and the following disclaimer in the | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 35 #include "core/events/ThreadLocalEventNames.h" | 35 #include "core/events/ThreadLocalEventNames.h" | 
| 36 #include "core/html/HTMLBodyElement.h" | 36 #include "core/html/HTMLBodyElement.h" | 
| 37 #include "core/html/HTMLHeadElement.h" | 37 #include "core/html/HTMLHeadElement.h" | 
| 38 #include "core/html/HTMLHtmlElement.h" | 38 #include "core/html/HTMLHtmlElement.h" | 
| 39 #include "core/html/HTMLMetaElement.h" | 39 #include "core/html/HTMLMetaElement.h" | 
| 40 #include "core/html/HTMLSourceElement.h" | 40 #include "core/html/HTMLSourceElement.h" | 
| 41 #include "core/html/HTMLVideoElement.h" | 41 #include "core/html/HTMLVideoElement.h" | 
| 42 #include "core/loader/DocumentLoader.h" | 42 #include "core/loader/DocumentLoader.h" | 
| 43 #include "core/loader/FrameLoader.h" | 43 #include "core/loader/FrameLoader.h" | 
| 44 #include "core/frame/Frame.h" | 44 #include "core/frame/Frame.h" | 
| 45 #include "core/platform/chromium/KeyboardCodes.h" | 45 #include "platform/KeyboardCodes.h" | 
| 46 | 46 | 
| 47 namespace WebCore { | 47 namespace WebCore { | 
| 48 | 48 | 
| 49 using namespace HTMLNames; | 49 using namespace HTMLNames; | 
| 50 | 50 | 
| 51 // FIXME: Share more code with PluginDocumentParser. | 51 // FIXME: Share more code with PluginDocumentParser. | 
| 52 class MediaDocumentParser : public RawDataDocumentParser { | 52 class MediaDocumentParser : public RawDataDocumentParser { | 
| 53 public: | 53 public: | 
| 54     static PassRefPtr<MediaDocumentParser> create(MediaDocument* document) | 54     static PassRefPtr<MediaDocumentParser> create(MediaDocument* document) | 
| 55     { | 55     { | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 159                 if (video->canPlay()) | 159                 if (video->canPlay()) | 
| 160                     video->play(); | 160                     video->play(); | 
| 161             } else | 161             } else | 
| 162                 video->pause(); | 162                 video->pause(); | 
| 163             event->setDefaultHandled(); | 163             event->setDefaultHandled(); | 
| 164         } | 164         } | 
| 165     } | 165     } | 
| 166 } | 166 } | 
| 167 | 167 | 
| 168 } | 168 } | 
| OLD | NEW | 
|---|