| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "public/web/WebPluginDocument.h" | 32 #include "public/web/WebPluginDocument.h" |
| 33 | 33 |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/html/PluginDocument.h" | 35 #include "core/html/PluginDocument.h" |
| 36 | 36 |
| 37 #include "web/WebPluginContainerImpl.h" | 37 #include "web/WebPluginContainerImpl.h" |
| 38 | 38 |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 | 40 |
| 41 using namespace blink; | |
| 42 | 41 |
| 43 namespace blink { | 42 namespace blink { |
| 44 | 43 |
| 45 | 44 |
| 46 WebPlugin* WebPluginDocument::plugin() | 45 WebPlugin* WebPluginDocument::plugin() |
| 47 { | 46 { |
| 48 if (!isPluginDocument()) | 47 if (!isPluginDocument()) |
| 49 return 0; | 48 return 0; |
| 50 PluginDocument* doc = unwrap<PluginDocument>(); | 49 PluginDocument* doc = unwrap<PluginDocument>(); |
| 51 WebPluginContainerImpl* container = toWebPluginContainerImpl(doc->pluginWidg
et()); | 50 WebPluginContainerImpl* container = toWebPluginContainerImpl(doc->pluginWidg
et()); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 63 m_private = elem; | 62 m_private = elem; |
| 64 return *this; | 63 return *this; |
| 65 } | 64 } |
| 66 | 65 |
| 67 WebPluginDocument::operator PassRefPtrWillBeRawPtr<PluginDocument>() const | 66 WebPluginDocument::operator PassRefPtrWillBeRawPtr<PluginDocument>() const |
| 68 { | 67 { |
| 69 return static_cast<PluginDocument*>(m_private.get()); | 68 return static_cast<PluginDocument*>(m_private.get()); |
| 70 } | 69 } |
| 71 | 70 |
| 72 } // namespace blink | 71 } // namespace blink |
| OLD | NEW |