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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
622 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); | 622 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); |
623 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); | 623 bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); |
624 | 624 |
625 // Updates the layer for compositing. This creates a layer and attaches to the | 625 // Updates the layer for compositing. This creates a layer and attaches to the |
626 // container if: | 626 // container if: |
627 // - we have a bound Graphics3D and the Graphics3D has a texture, OR | 627 // - we have a bound Graphics3D and the Graphics3D has a texture, OR |
628 // we have a bound Graphics2D and are using software compositing | 628 // we have a bound Graphics2D and are using software compositing |
629 // - we are not in Flash full-screen mode (or transitioning to it) | 629 // - we are not in Flash full-screen mode (or transitioning to it) |
630 // Otherwise it destroys the layer. | 630 // Otherwise it destroys the layer. |
631 // It does either operation lazily. | 631 // It does either operation lazily. |
632 void UpdateLayer(); | 632 void UpdateLayer(bool device_changed); |
raymes
2014/06/18 05:58:44
Maybe add a comment explaining what the parameter
Peng
2014/06/18 11:14:36
Done.
| |
633 | 633 |
634 // Internal helper function for PrintPage(). | 634 // Internal helper function for PrintPage(). |
635 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, | 635 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, |
636 int num_ranges, | 636 int num_ranges, |
637 blink::WebCanvas* canvas); | 637 blink::WebCanvas* canvas); |
638 | 638 |
639 void DoSetCursor(blink::WebCursorInfo* cursor); | 639 void DoSetCursor(blink::WebCursorInfo* cursor); |
640 | 640 |
641 // Internal helper functions for HandleCompositionXXX(). | 641 // Internal helper functions for HandleCompositionXXX(). |
642 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, | 642 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
898 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 898 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
899 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 899 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
900 | 900 |
901 friend class PpapiPluginInstanceTest; | 901 friend class PpapiPluginInstanceTest; |
902 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 902 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
903 }; | 903 }; |
904 | 904 |
905 } // namespace content | 905 } // namespace content |
906 | 906 |
907 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 907 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |