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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
365 // clear itself when it is destroyed. | 365 // clear itself when it is destroyed. |
366 blink::WebURLLoaderClient* document_loader() const { | 366 blink::WebURLLoaderClient* document_loader() const { |
367 return document_loader_; | 367 return document_loader_; |
368 } | 368 } |
369 void set_document_loader(blink::WebURLLoaderClient* loader) { | 369 void set_document_loader(blink::WebURLLoaderClient* loader) { |
370 document_loader_ = loader; | 370 document_loader_ = loader; |
371 } | 371 } |
372 | 372 |
373 ContentDecryptorDelegate* GetContentDecryptorDelegate(); | 373 ContentDecryptorDelegate* GetContentDecryptorDelegate(); |
374 | 374 |
375 void SetLayerTransform(gfx::Transform transform); | |
bokan
2016/04/14 21:45:01
pass by const reference.
piman
2016/04/14 23:11:35
nit: this only applies to Graphics2D, maybe this s
alessandroa
2016/04/21 15:39:22
Acknowledged.
alessandroa
2016/04/21 15:39:22
Done.
alessandroa
2016/04/21 15:39:22
Acknowledged.
alessandroa
2016/04/21 15:39:22
Done.
| |
376 | |
375 // PluginInstance implementation | 377 // PluginInstance implementation |
376 RenderView* GetRenderView() override; | 378 RenderView* GetRenderView() override; |
377 blink::WebPluginContainer* GetContainer() override; | 379 blink::WebPluginContainer* GetContainer() override; |
378 v8::Isolate* GetIsolate() const override; | 380 v8::Isolate* GetIsolate() const override; |
379 ppapi::VarTracker* GetVarTracker() override; | 381 ppapi::VarTracker* GetVarTracker() override; |
380 const GURL& GetPluginURL() override; | 382 const GURL& GetPluginURL() override; |
381 base::FilePath GetModulePath() override; | 383 base::FilePath GetModulePath() override; |
382 PP_Resource CreateImage(gfx::ImageSkia* source_image, float scale) override; | 384 PP_Resource CreateImage(gfx::ImageSkia* source_image, float scale) override; |
383 PP_ExternalPluginResult SwitchToOutOfProcessProxy( | 385 PP_ExternalPluginResult SwitchToOutOfProcessProxy( |
384 const base::FilePath& file_path, | 386 const base::FilePath& file_path, |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
704 scoped_refptr<PluginModule> module_; | 706 scoped_refptr<PluginModule> module_; |
705 std::unique_ptr<ppapi::PPP_Instance_Combined> instance_interface_; | 707 std::unique_ptr<ppapi::PPP_Instance_Combined> instance_interface_; |
706 // If this is the NaCl plugin, we create a new module when we switch to the | 708 // If this is the NaCl plugin, we create a new module when we switch to the |
707 // IPC-based PPAPI proxy. Store the original module and instance interface | 709 // IPC-based PPAPI proxy. Store the original module and instance interface |
708 // so we can shut down properly. | 710 // so we can shut down properly. |
709 scoped_refptr<PluginModule> original_module_; | 711 scoped_refptr<PluginModule> original_module_; |
710 std::unique_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_; | 712 std::unique_ptr<ppapi::PPP_Instance_Combined> original_instance_interface_; |
711 | 713 |
712 PP_Instance pp_instance_; | 714 PP_Instance pp_instance_; |
713 | 715 |
716 // This is the transform that will be applied to the layer. | |
717 gfx::Transform transform_; | |
718 | |
714 // NULL until we have been initialized. | 719 // NULL until we have been initialized. |
715 blink::WebPluginContainer* container_; | 720 blink::WebPluginContainer* container_; |
716 scoped_refptr<cc::Layer> compositor_layer_; | 721 scoped_refptr<cc::Layer> compositor_layer_; |
717 scoped_refptr<cc::TextureLayer> texture_layer_; | 722 scoped_refptr<cc::TextureLayer> texture_layer_; |
718 std::unique_ptr<blink::WebLayer> web_layer_; | 723 std::unique_ptr<blink::WebLayer> web_layer_; |
719 bool layer_bound_to_fullscreen_; | 724 bool layer_bound_to_fullscreen_; |
720 bool layer_is_hardware_; | 725 bool layer_is_hardware_; |
721 | 726 |
722 // Plugin URL. | 727 // Plugin URL. |
723 const GURL plugin_url_; | 728 const GURL plugin_url_; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
935 // view change events. | 940 // view change events. |
936 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 941 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
937 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 942 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
938 | 943 |
939 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 944 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
940 }; | 945 }; |
941 | 946 |
942 } // namespace content | 947 } // namespace content |
943 | 948 |
944 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 949 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |