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 25 matching lines...) Expand all Loading... |
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 WebKit { |
43 | 43 |
44 class HelperPluginChromeClient; | 44 class HelperPluginChromeClient; |
45 class WebDocument; | 45 class WebDocument; |
46 class WebFrame; | 46 class WebFrameImpl; |
47 class WebViewImpl; | 47 class WebViewImpl; |
48 class WebWidgetClient; | 48 class WebWidgetClient; |
49 | 49 |
50 // Hosts a simple page that instantiates a plugin using an <object> tag. | 50 // Hosts a simple page that instantiates a plugin using an <object> tag. |
51 // The widget is offscreen, and the plugin will not receive painting, resize, et
c. events. | 51 // The widget is offscreen, and the plugin will not receive painting, resize, et
c. events. |
52 class WebHelperPluginImpl : public WebHelperPlugin, | 52 class WebHelperPluginImpl : public WebHelperPlugin, |
53 public RefCounted<WebHelperPluginImpl> { | 53 public RefCounted<WebHelperPluginImpl> { |
54 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); | 54 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); |
55 WTF_MAKE_FAST_ALLOCATED; | 55 WTF_MAKE_FAST_ALLOCATED; |
56 | 56 |
(...skipping 11 matching lines...) Expand all Loading... |
68 bool initializePage(const String& pluginType, const WebDocument& hostDocumen
t); | 68 bool initializePage(const String& pluginType, const WebDocument& hostDocumen
t); |
69 void destroyPage(); | 69 void destroyPage(); |
70 | 70 |
71 // WebWidget methods: | 71 // WebWidget methods: |
72 virtual void layout() OVERRIDE; | 72 virtual void layout() OVERRIDE; |
73 virtual void setFocus(bool) OVERRIDE; | 73 virtual void setFocus(bool) OVERRIDE; |
74 virtual void close() OVERRIDE; | 74 virtual void close() OVERRIDE; |
75 | 75 |
76 WebWidgetClient* m_widgetClient; | 76 WebWidgetClient* m_widgetClient; |
77 WebViewImpl* m_webView; | 77 WebViewImpl* m_webView; |
| 78 WebFrameImpl* m_mainFrame; |
78 OwnPtr<WebCore::Page> m_page; | 79 OwnPtr<WebCore::Page> m_page; |
79 OwnPtr<HelperPluginChromeClient> m_chromeClient; | 80 OwnPtr<HelperPluginChromeClient> m_chromeClient; |
80 | 81 |
81 friend class WebHelperPlugin; | 82 friend class WebHelperPlugin; |
82 friend class HelperPluginChromeClient; | 83 friend class HelperPluginChromeClient; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace WebKit | 86 } // namespace WebKit |
86 | 87 |
87 #endif // WebHelperPluginImpl_h | 88 #endif // WebHelperPluginImpl_h |
OLD | NEW |