| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 #define WebHelperPluginImpl_h | 32 #define WebHelperPluginImpl_h |
| 33 | 33 |
| 34 #include "WebHelperPlugin.h" | 34 #include "WebHelperPlugin.h" |
| 35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 class Page; | 39 class Page; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace WebKit { | 42 namespace blink { |
| 43 | 43 |
| 44 class HelperPluginChromeClient; | 44 class HelperPluginChromeClient; |
| 45 class HelperPluginFrameClient; | 45 class HelperPluginFrameClient; |
| 46 class WebDocument; | 46 class WebDocument; |
| 47 class WebFrameImpl; | 47 class WebFrameImpl; |
| 48 class WebViewImpl; | 48 class WebViewImpl; |
| 49 class WebWidgetClient; | 49 class WebWidgetClient; |
| 50 | 50 |
| 51 // Hosts a simple page that instantiates a plugin using an <object> tag. | 51 // Hosts a simple page that instantiates a plugin using an <object> tag. |
| 52 // The widget is offscreen, and the plugin will not receive painting, resize, et
c. events. | 52 // The widget is offscreen, and the plugin will not receive painting, resize, et
c. events. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 friend class WebHelperPlugin; | 85 friend class WebHelperPlugin; |
| 86 friend class HelperPluginChromeClient; | 86 friend class HelperPluginChromeClient; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 inline WebHelperPluginImpl* toWebHelperPluginImpl(WebWidget* widget) | 89 inline WebHelperPluginImpl* toWebHelperPluginImpl(WebWidget* widget) |
| 90 { | 90 { |
| 91 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isHelperPlugin()); | 91 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isHelperPlugin()); |
| 92 return static_cast<WebHelperPluginImpl*>(widget); | 92 return static_cast<WebHelperPluginImpl*>(widget); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace WebKit | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif // WebHelperPluginImpl_h | 97 #endif // WebHelperPluginImpl_h |
| OLD | NEW |