Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 324983005: [PPAPI] Add browser tests for compositor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_impl_new
Patch Set: Fix review issues Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698