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_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "ppapi/c/dev/pp_cursor_type_dev.h" | 19 #include "ppapi/c/dev/pp_cursor_type_dev.h" |
20 #include "ppapi/c/dev/ppp_graphics_3d_dev.h" | |
21 #include "ppapi/c/dev/ppp_printing_dev.h" | 20 #include "ppapi/c/dev/ppp_printing_dev.h" |
22 #include "ppapi/c/pp_instance.h" | 21 #include "ppapi/c/pp_instance.h" |
23 #include "ppapi/c/pp_resource.h" | 22 #include "ppapi/c/pp_resource.h" |
24 #include "ppapi/c/pp_var.h" | 23 #include "ppapi/c/pp_var.h" |
| 24 #include "ppapi/c/ppp_graphics_3d.h" |
25 #include "ppapi/c/ppp_instance.h" | 25 #include "ppapi/c/ppp_instance.h" |
26 #include "ppapi/shared_impl/function_group_base.h" | 26 #include "ppapi/shared_impl/function_group_base.h" |
27 #include "ppapi/shared_impl/instance_impl.h" | 27 #include "ppapi/shared_impl/instance_impl.h" |
28 #include "ppapi/shared_impl/ppp_instance_combined.h" | 28 #include "ppapi/shared_impl/ppp_instance_combined.h" |
29 #include "ppapi/thunk/ppb_instance_api.h" | 29 #include "ppapi/thunk/ppb_instance_api.h" |
30 #include "third_party/skia/include/core/SkBitmap.h" | 30 #include "third_party/skia/include/core/SkBitmap.h" |
31 #include "third_party/skia/include/core/SkRefCnt.h" | 31 #include "third_party/skia/include/core/SkRefCnt.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" |
33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
34 #include "webkit/plugins/ppapi/plugin_delegate.h" | 34 #include "webkit/plugins/ppapi/plugin_delegate.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // The most recently used WebCanvas, guaranteed to be valid. | 425 // The most recently used WebCanvas, guaranteed to be valid. |
426 SkRefPtr<WebKit::WebCanvas> canvas_; | 426 SkRefPtr<WebKit::WebCanvas> canvas_; |
427 // An array of page ranges. | 427 // An array of page ranges. |
428 std::vector<PP_PrintPageNumberRange_Dev> ranges_; | 428 std::vector<PP_PrintPageNumberRange_Dev> ranges_; |
429 #endif // OS_LINUX || OS_WIN | 429 #endif // OS_LINUX || OS_WIN |
430 | 430 |
431 // The plugin print interface. | 431 // The plugin print interface. |
432 const PPP_Printing_Dev* plugin_print_interface_; | 432 const PPP_Printing_Dev* plugin_print_interface_; |
433 | 433 |
434 // The plugin 3D interface. | 434 // The plugin 3D interface. |
435 const PPP_Graphics3D_Dev* plugin_graphics_3d_interface_; | 435 const PPP_Graphics3D* plugin_graphics_3d_interface_; |
436 | 436 |
437 // Contains the cursor if it's set by the plugin. | 437 // Contains the cursor if it's set by the plugin. |
438 scoped_ptr<WebKit::WebCursorInfo> cursor_; | 438 scoped_ptr<WebKit::WebCursorInfo> cursor_; |
439 | 439 |
440 // Set to true if this plugin thinks it will always be on top. This allows us | 440 // Set to true if this plugin thinks it will always be on top. This allows us |
441 // to use a more optimized painting path in some cases. | 441 // to use a more optimized painting path in some cases. |
442 bool always_on_top_; | 442 bool always_on_top_; |
443 | 443 |
444 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. Note: | 444 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. Note: |
445 // there is a transition state where fullscreen_container_ is non-NULL but | 445 // there is a transition state where fullscreen_container_ is non-NULL but |
(...skipping 18 matching lines...) Expand all Loading... |
464 uint32_t input_event_mask_; | 464 uint32_t input_event_mask_; |
465 uint32_t filtered_input_event_mask_; | 465 uint32_t filtered_input_event_mask_; |
466 | 466 |
467 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 467 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
468 }; | 468 }; |
469 | 469 |
470 } // namespace ppapi | 470 } // namespace ppapi |
471 } // namespace webkit | 471 } // namespace webkit |
472 | 472 |
473 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 473 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |