| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 NP_CGContext np_cg_context_; | 468 NP_CGContext np_cg_context_; |
| 469 #endif | 469 #endif |
| 470 #ifndef NP_NO_QUICKDRAW | 470 #ifndef NP_NO_QUICKDRAW |
| 471 NP_Port qd_port_; | 471 NP_Port qd_port_; |
| 472 scoped_ptr<QuickDrawDrawingManager> qd_manager_; | 472 scoped_ptr<QuickDrawDrawingManager> qd_manager_; |
| 473 base::TimeTicks fast_path_enable_tick_; | 473 base::TimeTicks fast_path_enable_tick_; |
| 474 #endif | 474 #endif |
| 475 | 475 |
| 476 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plug-in. | 476 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plug-in. |
| 477 WebPluginAcceleratedSurface* surface_; // Weak ref. | 477 WebPluginAcceleratedSurface* surface_; // Weak ref. |
| 478 bool composited_; // If CA plugin, whether it's rendering via compositor. |
| 478 CARenderer* renderer_; // Renders layer_ to surface_. | 479 CARenderer* renderer_; // Renders layer_ to surface_. |
| 479 scoped_ptr<base::RepeatingTimer<WebPluginDelegateImpl> > redraw_timer_; | 480 scoped_ptr<base::RepeatingTimer<WebPluginDelegateImpl> > redraw_timer_; |
| 480 | 481 |
| 481 // The upper-left corner of the web content area in screen coordinates, | 482 // The upper-left corner of the web content area in screen coordinates, |
| 482 // relative to an upper-left (0,0). | 483 // relative to an upper-left (0,0). |
| 483 gfx::Point content_area_origin_; | 484 gfx::Point content_area_origin_; |
| 484 | 485 |
| 485 bool containing_window_has_focus_; | 486 bool containing_window_has_focus_; |
| 486 bool initial_window_focus_; | 487 bool initial_window_focus_; |
| 487 bool container_is_visible_; | 488 bool container_is_visible_; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // True if NPP_New did not return an error. | 552 // True if NPP_New did not return an error. |
| 552 bool creation_succeeded_; | 553 bool creation_succeeded_; |
| 553 | 554 |
| 554 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 555 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 555 }; | 556 }; |
| 556 | 557 |
| 557 } // namespace npapi | 558 } // namespace npapi |
| 558 } // namespace webkit | 559 } // namespace webkit |
| 559 | 560 |
| 560 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 561 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |