| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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. | 
| 53 class WebHelperPluginImpl : public WebHelperPlugin, | 53 class WebHelperPluginImpl FINAL : public WebHelperPlugin, public RefCounted<WebH
    elperPluginImpl> { | 
| 54                             public RefCounted<WebHelperPluginImpl> { |  | 
| 55     WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); | 54     WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); | 
| 56     WTF_MAKE_FAST_ALLOCATED; | 55     WTF_MAKE_FAST_ALLOCATED; | 
| 57 | 56 | 
| 58 public: | 57 public: | 
| 59     virtual ~WebHelperPluginImpl(); | 58     virtual ~WebHelperPluginImpl(); | 
| 60     bool initialize(const String& pluginType, const WebDocument& hostDocument, W
    ebViewImpl*); | 59     bool initialize(const String& pluginType, const WebDocument& hostDocument, W
    ebViewImpl*); | 
| 61     void closeHelperPlugin(); | 60     void closeHelperPlugin(); | 
| 62 | 61 | 
| 63     // WebHelperPlugin methods: | 62     // WebHelperPlugin methods: | 
| 64     virtual void initializeFrame(WebFrameClient*) OVERRIDE; | 63     virtual void initializeFrame(WebFrameClient*) OVERRIDE; | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 84 | 83 | 
| 85     friend class WebHelperPlugin; | 84     friend class WebHelperPlugin; | 
| 86     friend class HelperPluginChromeClient; | 85     friend class HelperPluginChromeClient; | 
| 87 }; | 86 }; | 
| 88 | 87 | 
| 89 DEFINE_TYPE_CASTS(WebHelperPluginImpl, WebWidget, widget, widget->isHelperPlugin
    (), widget.isHelperPlugin()); | 88 DEFINE_TYPE_CASTS(WebHelperPluginImpl, WebWidget, widget, widget->isHelperPlugin
    (), widget.isHelperPlugin()); | 
| 90 | 89 | 
| 91 } // namespace blink | 90 } // namespace blink | 
| 92 | 91 | 
| 93 #endif // WebHelperPluginImpl_h | 92 #endif // WebHelperPluginImpl_h | 
| OLD | NEW | 
|---|