OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <list> | 9 #include <list> |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Informs the delegate that the plugin set a Carbon Cursor. | 170 // Informs the delegate that the plugin set a Carbon Cursor. |
171 void SetCarbonCursor(const Cursor* cursor); | 171 void SetCarbonCursor(const Cursor* cursor); |
172 #endif | 172 #endif |
173 // Informs the delegate that the plugin set a Cocoa NSCursor. | 173 // Informs the delegate that the plugin set a Cocoa NSCursor. |
174 void SetNSCursor(NSCursor* cursor); | 174 void SetNSCursor(NSCursor* cursor); |
175 | 175 |
176 #ifndef NP_NO_CARBON | 176 #ifndef NP_NO_CARBON |
177 // Indicates that it's time to send the plugin a null event. | 177 // Indicates that it's time to send the plugin a null event. |
178 void FireIdleEvent(); | 178 void FireIdleEvent(); |
179 #endif | 179 #endif |
| 180 |
| 181 // TODO(caryclark): This is a temporary workaround to allow the Darwin / Skia |
| 182 // port to share code with the Darwin / CG port. Later, this will be removed |
| 183 // and all callers will use the Paint defined above. |
| 184 void CGPaint(CGContextRef context, const gfx::Rect& rect); |
| 185 |
180 #endif // OS_MACOSX | 186 #endif // OS_MACOSX |
181 | 187 |
182 gfx::PluginWindowHandle windowed_handle() const { | 188 gfx::PluginWindowHandle windowed_handle() const { |
183 return windowed_handle_; | 189 return windowed_handle_; |
184 } | 190 } |
185 | 191 |
186 #if defined(OS_MACOSX) | 192 #if defined(OS_MACOSX) |
187 // Allow setting a "fake" window handle to associate this plug-in with | 193 // Allow setting a "fake" window handle to associate this plug-in with |
188 // an IOSurface in the browser. Used for accelerated drawing surfaces. | 194 // an IOSurface in the browser. Used for accelerated drawing surfaces. |
189 void set_windowed_handle(gfx::PluginWindowHandle handle); | 195 void set_windowed_handle(gfx::PluginWindowHandle handle); |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 // True if NPP_New did not return an error. | 518 // True if NPP_New did not return an error. |
513 bool creation_succeeded_; | 519 bool creation_succeeded_; |
514 | 520 |
515 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 521 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
516 }; | 522 }; |
517 | 523 |
518 } // namespace npapi | 524 } // namespace npapi |
519 } // namespace webkit | 525 } // namespace webkit |
520 | 526 |
521 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 527 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |