| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
| 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 WebPluginDelegatePepper(gfx::PluginWindowHandle containing_view, | 92 WebPluginDelegatePepper(gfx::PluginWindowHandle containing_view, |
| 93 NPAPI::PluginInstance *instance); | 93 NPAPI::PluginInstance *instance); |
| 94 ~WebPluginDelegatePepper(); | 94 ~WebPluginDelegatePepper(); |
| 95 | 95 |
| 96 //---------------------------- | 96 //---------------------------- |
| 97 // used for windowless plugins | 97 // used for windowless plugins |
| 98 virtual NPError InitializeRenderContext(NPRenderType type, | 98 virtual NPError InitializeRenderContext(NPRenderType type, |
| 99 NPRenderContext* context); | 99 NPRenderContext* context); |
| 100 virtual NPError FlushRenderContext(NPRenderContext* context); | 100 virtual NPError FlushRenderContext(NPRenderContext* context); |
| 101 | 101 |
| 102 virtual NPError OpenFileInSandbox(const char* file_name, void** handle); |
| 103 |
| 102 // Tells the plugin about the current state of the window. | 104 // Tells the plugin about the current state of the window. |
| 103 // See NPAPI NPP_SetWindow for more information. | 105 // See NPAPI NPP_SetWindow for more information. |
| 104 void WindowlessSetWindow(bool force_set_window); | 106 void WindowlessSetWindow(bool force_set_window); |
| 105 | 107 |
| 106 //----------------------------------------- | 108 //----------------------------------------- |
| 107 // used for windowed and windowless plugins | 109 // used for windowed and windowless plugins |
| 108 | 110 |
| 109 NPAPI::PluginInstance* instance() { return instance_.get(); } | 111 NPAPI::PluginInstance* instance() { return instance_.get(); } |
| 110 | 112 |
| 111 // Closes down and destroys our plugin instance. | 113 // Closes down and destroys our plugin instance. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 127 scoped_ptr<skia::PlatformCanvas> plugin_canvas_; | 129 scoped_ptr<skia::PlatformCanvas> plugin_canvas_; |
| 128 SkBitmap committed_bitmap_; | 130 SkBitmap committed_bitmap_; |
| 129 | 131 |
| 130 // The url with which the plugin was instantiated. | 132 // The url with which the plugin was instantiated. |
| 131 std::string plugin_url_; | 133 std::string plugin_url_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); | 135 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 138 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
| OLD | NEW |