OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool ExecuteEditCommand(const WebString& name) override; | 168 bool ExecuteEditCommand(const WebString& name) override; |
169 bool ExecuteEditCommand(const WebString& name, | 169 bool ExecuteEditCommand(const WebString& name, |
170 const WebString& value) override; | 170 const WebString& value) override; |
171 | 171 |
172 // Resource load events for the plugin's source data: | 172 // Resource load events for the plugin's source data: |
173 void DidReceiveResponse(const ResourceResponse&) override; | 173 void DidReceiveResponse(const ResourceResponse&) override; |
174 void DidReceiveData(const char* data, int data_length) override; | 174 void DidReceiveData(const char* data, int data_length) override; |
175 void DidFinishLoading() override; | 175 void DidFinishLoading() override; |
176 void DidFailLoading(const ResourceError&) override; | 176 void DidFailLoading(const ResourceError&) override; |
177 | 177 |
| 178 WebPluginContainerBase* GetWebPluginContainerBase() const override { |
| 179 return const_cast<WebPluginContainerImpl*>(this); |
| 180 } |
| 181 |
178 DECLARE_VIRTUAL_TRACE(); | 182 DECLARE_VIRTUAL_TRACE(); |
179 // USING_PRE_FINALIZER does not allow for virtual dispatch from the finalizer | 183 // USING_PRE_FINALIZER does not allow for virtual dispatch from the finalizer |
180 // method. Here we call Dispose() which does the correct virtual dispatch. | 184 // method. Here we call Dispose() which does the correct virtual dispatch. |
181 void PreFinalize() { Dispose(); } | 185 void PreFinalize() { Dispose(); } |
182 void Dispose() override; | 186 void Dispose() override; |
183 | 187 |
184 private: | 188 private: |
185 FrameView* ParentFrameView() const; | 189 FrameView* ParentFrameView() const; |
186 // Sets |windowRect| to the content rect of the plugin in screen space. | 190 // Sets |windowRect| to the content rect of the plugin in screen space. |
187 // Sets |clippedAbsoluteRect| to the visible rect for the plugin, clipped to | 191 // Sets |clippedAbsoluteRect| to the visible rect for the plugin, clipped to |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 245 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
242 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 246 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
243 WebPluginContainer, | 247 WebPluginContainer, |
244 container, | 248 container, |
245 true, | 249 true, |
246 true); | 250 true); |
247 | 251 |
248 } // namespace blink | 252 } // namespace blink |
249 | 253 |
250 #endif | 254 #endif |
OLD | NEW |