| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2009 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 28 matching lines...) Expand all Loading... |
| 39 return adoptRef(new PluginDocument(initializer)); | 39 return adoptRef(new PluginDocument(initializer)); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void setPluginNode(Node* pluginNode) { m_pluginNode = pluginNode; } | 42 void setPluginNode(Node* pluginNode) { m_pluginNode = pluginNode; } |
| 43 | 43 |
| 44 Widget* pluginWidget(); | 44 Widget* pluginWidget(); |
| 45 Node* pluginNode(); | 45 Node* pluginNode(); |
| 46 | 46 |
| 47 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 47 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
| 48 | 48 |
| 49 void cancelManualPluginLoad(); | |
| 50 | |
| 51 bool shouldLoadPluginManually() { return m_shouldLoadPluginManually; } | 49 bool shouldLoadPluginManually() { return m_shouldLoadPluginManually; } |
| 52 | 50 |
| 53 private: | 51 private: |
| 54 PluginDocument(const DocumentInit&); | 52 PluginDocument(const DocumentInit&); |
| 55 | 53 |
| 56 virtual PassRefPtr<DocumentParser> createParser() OVERRIDE; | 54 virtual PassRefPtr<DocumentParser> createParser() OVERRIDE; |
| 57 | 55 |
| 58 void setShouldLoadPluginManually(bool loadManually) { m_shouldLoadPluginManu
ally = loadManually; } | 56 void setShouldLoadPluginManually(bool loadManually) { m_shouldLoadPluginManu
ally = loadManually; } |
| 59 | 57 |
| 60 bool m_shouldLoadPluginManually; | 58 bool m_shouldLoadPluginManually; |
| 61 RefPtr<Node> m_pluginNode; | 59 RefPtr<Node> m_pluginNode; |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 DEFINE_DOCUMENT_TYPE_CASTS(PluginDocument); | 62 DEFINE_DOCUMENT_TYPE_CASTS(PluginDocument); |
| 65 | 63 |
| 66 } | 64 } |
| 67 | 65 |
| 68 #endif // PluginDocument_h | 66 #endif // PluginDocument_h |
| OLD | NEW |