| 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 47 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 48 #include "ppapi/c/private/ppp_find_private.h" | 48 #include "ppapi/c/private/ppp_find_private.h" |
| 49 #include "ppapi/c/private/ppp_instance_private.h" | 49 #include "ppapi/c/private/ppp_instance_private.h" |
| 50 #include "ppapi/c/private/ppp_pdf.h" | 50 #include "ppapi/c/private/ppp_pdf.h" |
| 51 #include "ppapi/shared_impl/ppb_instance_shared.h" | 51 #include "ppapi/shared_impl/ppb_instance_shared.h" |
| 52 #include "ppapi/shared_impl/ppb_view_shared.h" | 52 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 53 #include "ppapi/shared_impl/singleton_resource_id.h" | 53 #include "ppapi/shared_impl/singleton_resource_id.h" |
| 54 #include "ppapi/shared_impl/tracked_callback.h" | 54 #include "ppapi/shared_impl/tracked_callback.h" |
| 55 #include "ppapi/thunk/ppb_gamepad_api.h" | 55 #include "ppapi/thunk/ppb_gamepad_api.h" |
| 56 #include "ppapi/thunk/resource_creation_api.h" | 56 #include "ppapi/thunk/resource_creation_api.h" |
| 57 #include "skia/ext/refptr.h" | |
| 58 #include "third_party/WebKit/public/platform/WebCanvas.h" | 57 #include "third_party/WebKit/public/platform/WebCanvas.h" |
| 59 #include "third_party/WebKit/public/platform/WebString.h" | 58 #include "third_party/WebKit/public/platform/WebString.h" |
| 60 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 59 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 61 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 60 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 62 #include "third_party/WebKit/public/web/WebPlugin.h" | 61 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 63 #include "third_party/WebKit/public/web/WebUserGestureToken.h" | 62 #include "third_party/WebKit/public/web/WebUserGestureToken.h" |
| 64 #include "ui/base/ime/text_input_type.h" | 63 #include "ui/base/ime/text_input_type.h" |
| 65 #include "ui/gfx/geometry/rect.h" | 64 #include "ui/gfx/geometry/rect.h" |
| 66 #include "url/gurl.h" | 65 #include "url/gurl.h" |
| 67 #include "v8/include/v8.h" | 66 #include "v8/include/v8.h" |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 #endif // defined(OS_MACOSX) | 799 #endif // defined(OS_MACOSX) |
| 801 // Always when printing to PDF on Linux and when printing for preview on Mac | 800 // Always when printing to PDF on Linux and when printing for preview on Mac |
| 802 // and Win, the entire document goes into one metafile. However, when users | 801 // and Win, the entire document goes into one metafile. However, when users |
| 803 // print only a subset of all the pages, it is impossible to know if a call | 802 // print only a subset of all the pages, it is impossible to know if a call |
| 804 // to PrintPage() is the last call. Thus in PrintPage(), just store the page | 803 // to PrintPage() is the last call. Thus in PrintPage(), just store the page |
| 805 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_| | 804 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_| |
| 806 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible | 805 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible |
| 807 // to generate the entire PDF given the variables below: | 806 // to generate the entire PDF given the variables below: |
| 808 // | 807 // |
| 809 // The most recently used WebCanvas, guaranteed to be valid. | 808 // The most recently used WebCanvas, guaranteed to be valid. |
| 810 skia::RefPtr<blink::WebCanvas> canvas_; | 809 sk_sp<blink::WebCanvas> canvas_; |
| 811 // An array of page ranges. | 810 // An array of page ranges. |
| 812 std::vector<PP_PrintPageNumberRange_Dev> ranges_; | 811 std::vector<PP_PrintPageNumberRange_Dev> ranges_; |
| 813 | 812 |
| 814 scoped_refptr<ppapi::Resource> gamepad_impl_; | 813 scoped_refptr<ppapi::Resource> gamepad_impl_; |
| 815 scoped_refptr<ppapi::Resource> uma_private_impl_; | 814 scoped_refptr<ppapi::Resource> uma_private_impl_; |
| 816 | 815 |
| 817 // The plugin print interface. | 816 // The plugin print interface. |
| 818 const PPP_Printing_Dev* plugin_print_interface_; | 817 const PPP_Printing_Dev* plugin_print_interface_; |
| 819 | 818 |
| 820 // The plugin 3D interface. | 819 // The plugin 3D interface. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 // view change events. | 935 // view change events. |
| 937 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 936 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 938 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 937 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 939 | 938 |
| 940 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 939 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 941 }; | 940 }; |
| 942 | 941 |
| 943 } // namespace content | 942 } // namespace content |
| 944 | 943 |
| 945 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 944 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |