| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  638   bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); |  638   bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); | 
|  639   bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); |  639   bool PrintPDFOutput(PP_Resource print_output, blink::WebCanvas* canvas); | 
|  640  |  640  | 
|  641   // Updates the layer for compositing. This creates a layer and attaches to the |  641   // Updates the layer for compositing. This creates a layer and attaches to the | 
|  642   // container if: |  642   // container if: | 
|  643   // - we have a bound Graphics3D and the Graphics3D has a texture, OR |  643   // - we have a bound Graphics3D and the Graphics3D has a texture, OR | 
|  644   //   we have a bound Graphics2D and are using software compositing |  644   //   we have a bound Graphics2D and are using software compositing | 
|  645   // - we are not in Flash full-screen mode (or transitioning to it) |  645   // - we are not in Flash full-screen mode (or transitioning to it) | 
|  646   // Otherwise it destroys the layer. |  646   // Otherwise it destroys the layer. | 
|  647   // It does either operation lazily. |  647   // It does either operation lazily. | 
|  648   // device_changed: true if the bound device has been changed, and |  648   // force_creation: Force UpdateLayer() to recreate the layer and attaches | 
|  649   // UpdateLayer() will be forced to recreate the layer and attaches to the |  649   //   to the container. Set to true if the bound device has been changed. | 
|  650   // container. |  650   void UpdateLayer(bool force_creation); | 
|  651   void UpdateLayer(bool device_changed); |  | 
|  652  |  651  | 
|  653   // Internal helper function for PrintPage(). |  652   // Internal helper function for PrintPage(). | 
|  654   void PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, |  653   void PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, | 
|  655                        int num_ranges, |  654                        int num_ranges, | 
|  656                        blink::WebCanvas* canvas); |  655                        blink::WebCanvas* canvas); | 
|  657  |  656  | 
|  658   void DoSetCursor(blink::WebCursorInfo* cursor); |  657   void DoSetCursor(blink::WebCursorInfo* cursor); | 
|  659  |  658  | 
|  660   // Internal helper functions for HandleCompositionXXX(). |  659   // Internal helper functions for HandleCompositionXXX(). | 
|  661   bool SendCompositionEventToPlugin(PP_InputEvent_Type type, |  660   bool SendCompositionEventToPlugin(PP_InputEvent_Type type, | 
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  930   // view change events. |  929   // view change events. | 
|  931   base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |  930   base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 
|  932   base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |  931   base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 
|  933  |  932  | 
|  934   DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |  933   DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 
|  935 }; |  934 }; | 
|  936  |  935  | 
|  937 }  // namespace content |  936 }  // namespace content | 
|  938  |  937  | 
|  939 #endif  // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |  938 #endif  // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 
| OLD | NEW |