OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #endif | 44 #endif |
45 | 45 |
46 namespace webkit { | 46 namespace webkit { |
47 namespace npapi { | 47 namespace npapi { |
48 | 48 |
49 class PluginInstance; | 49 class PluginInstance; |
50 | 50 |
51 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
52 class WebPluginAcceleratedSurface; | 52 class WebPluginAcceleratedSurface; |
53 class ExternalDragTracker; | 53 class ExternalDragTracker; |
54 #ifndef NP_NO_QUICKDRAW | |
55 class QuickDrawDrawingManager; | |
56 #endif // NP_NO_QUICKDRAW | |
57 #endif // OS_MACOSX | 54 #endif // OS_MACOSX |
58 | 55 |
59 #if defined(OS_WIN) && !defined(USE_AURA) | 56 #if defined(OS_WIN) && !defined(USE_AURA) |
60 class WebPluginIMEWin; | 57 class WebPluginIMEWin; |
61 #endif // OS_WIN | 58 #endif // OS_WIN |
62 | 59 |
63 // An implementation of WebPluginDelegate that runs in the plugin process, | 60 // An implementation of WebPluginDelegate that runs in the plugin process, |
64 // proxied from the renderer by WebPluginDelegateProxy. | 61 // proxied from the renderer by WebPluginDelegateProxy. |
65 class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate { | 62 class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate { |
66 public: | 63 public: |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // visibility. | 460 // visibility. |
464 void UpdateIdleEventRate(); | 461 void UpdateIdleEventRate(); |
465 #endif // !NP_NO_CARBON | 462 #endif // !NP_NO_CARBON |
466 | 463 |
467 bool use_buffer_context_; | 464 bool use_buffer_context_; |
468 CGContextRef buffer_context_; // Weak ref. | 465 CGContextRef buffer_context_; // Weak ref. |
469 | 466 |
470 #ifndef NP_NO_CARBON | 467 #ifndef NP_NO_CARBON |
471 NP_CGContext np_cg_context_; | 468 NP_CGContext np_cg_context_; |
472 #endif | 469 #endif |
473 #ifndef NP_NO_QUICKDRAW | |
474 NP_Port qd_port_; | |
475 scoped_ptr<QuickDrawDrawingManager> qd_manager_; | |
476 #endif | |
477 | 470 |
478 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plug-in. | 471 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plug-in. |
479 WebPluginAcceleratedSurface* surface_; // Weak ref. | 472 WebPluginAcceleratedSurface* surface_; // Weak ref. |
480 bool composited_; // If CA plugin, whether it's rendering via compositor. | 473 bool composited_; // If CA plugin, whether it's rendering via compositor. |
481 CARenderer* renderer_; // Renders layer_ to surface_. | 474 CARenderer* renderer_; // Renders layer_ to surface_. |
482 scoped_ptr<base::RepeatingTimer<WebPluginDelegateImpl> > redraw_timer_; | 475 scoped_ptr<base::RepeatingTimer<WebPluginDelegateImpl> > redraw_timer_; |
483 | 476 |
484 // The upper-left corner of the web content area in screen coordinates, | 477 // The upper-left corner of the web content area in screen coordinates, |
485 // relative to an upper-left (0,0). | 478 // relative to an upper-left (0,0). |
486 gfx::Point content_area_origin_; | 479 gfx::Point content_area_origin_; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // True if NPP_New did not return an error. | 547 // True if NPP_New did not return an error. |
555 bool creation_succeeded_; | 548 bool creation_succeeded_; |
556 | 549 |
557 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 550 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
558 }; | 551 }; |
559 | 552 |
560 } // namespace npapi | 553 } // namespace npapi |
561 } // namespace webkit | 554 } // namespace webkit |
562 | 555 |
563 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 556 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |