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_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set | 90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set |
91 // to false and the caller may want to fall back on creating an NPAPI plugin. | 91 // to false and the caller may want to fall back on creating an NPAPI plugin. |
92 // the second is that the plugin failed to initialize. In this case, | 92 // the second is that the plugin failed to initialize. In this case, |
93 // |*pepper_plugin_was_registered| will be set to true and the caller should | 93 // |*pepper_plugin_was_registered| will be set to true and the caller should |
94 // not fall back on any other plugin types. | 94 // not fall back on any other plugin types. |
95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> | 95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> |
96 CreatePepperPluginModule( | 96 CreatePepperPluginModule( |
97 const webkit::WebPluginInfo& webplugin_info, | 97 const webkit::WebPluginInfo& webplugin_info, |
98 bool* pepper_plugin_was_registered); | 98 bool* pepper_plugin_was_registered); |
99 | 99 |
100 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> | |
jam
2012/04/06 21:05:23
nit: are you sure you need CONTENT_EXPORT (i.e. ar
Fady Samuel
2012/04/06 22:46:32
Nope, remnant of an earlier revision of the code w
| |
101 CreateBrowserPluginModule( | |
jam
2012/04/06 21:05:23
add comment for this function (see the rest of the
Fady Samuel
2012/04/06 22:46:32
Done.
| |
102 base::ProcessHandle process_handle, | |
103 const IPC::ChannelHandle& channel_handle); | |
104 | |
100 // Called by RenderView to tell us about painting events, these two functions | 105 // Called by RenderView to tell us about painting events, these two functions |
101 // just correspond to the WillInitiatePaint, DidInitiatePaint and | 106 // just correspond to the WillInitiatePaint, DidInitiatePaint and |
102 // DidFlushPaint hooks in RenderView. | 107 // DidFlushPaint hooks in RenderView. |
103 void ViewWillInitiatePaint(); | 108 void ViewWillInitiatePaint(); |
104 void ViewInitiatedPaint(); | 109 void ViewInitiatedPaint(); |
105 void ViewFlushedPaint(); | 110 void ViewFlushedPaint(); |
106 | 111 |
107 // Called by RenderView to implement the corresponding function in its base | 112 // Called by RenderView to implement the corresponding function in its base |
108 // class RenderWidget (see that for more). | 113 // class RenderWidget (see that for more). |
109 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 114 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 | 493 |
489 scoped_ptr<PepperDeviceEnumerationEventHandler> | 494 scoped_ptr<PepperDeviceEnumerationEventHandler> |
490 device_enumeration_event_handler_; | 495 device_enumeration_event_handler_; |
491 | 496 |
492 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 497 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
493 }; | 498 }; |
494 | 499 |
495 } // namespace content | 500 } // namespace content |
496 | 501 |
497 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 502 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |