| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PROXY_H__ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
| 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // current background bitmap. | 137 // current background bitmap. |
| 138 bool BackgroundChanged(HDC hdc, const gfx::Rect& rect); | 138 bool BackgroundChanged(HDC hdc, const gfx::Rect& rect); |
| 139 | 139 |
| 140 // Copies the given rectangle from the transport bitmap to the backing store. | 140 // Copies the given rectangle from the transport bitmap to the backing store. |
| 141 void CopyFromTransportToBacking(const gfx::Rect& rect); | 141 void CopyFromTransportToBacking(const gfx::Rect& rect); |
| 142 | 142 |
| 143 // Clears the shared memory section and canvases used for windowless plugins. | 143 // Clears the shared memory section and canvases used for windowless plugins. |
| 144 void ResetWindowlessBitmaps(); | 144 void ResetWindowlessBitmaps(); |
| 145 | 145 |
| 146 // Creates a shared memory section and canvas. | 146 // Creates a shared memory section and canvas. |
| 147 bool CreateBitmap(scoped_ptr<SharedMemory>* memory, | 147 bool CreateBitmap(scoped_ptr<base::SharedMemory>* memory, |
| 148 scoped_ptr<gfx::PlatformCanvasWin>* canvas); | 148 scoped_ptr<gfx::PlatformCanvasWin>* canvas); |
| 149 | 149 |
| 150 RenderView* render_view_; | 150 RenderView* render_view_; |
| 151 WebPlugin* plugin_; | 151 WebPlugin* plugin_; |
| 152 bool windowless_; | 152 bool windowless_; |
| 153 bool first_paint_; | 153 bool first_paint_; |
| 154 scoped_refptr<PluginChannelHost> channel_host_; | 154 scoped_refptr<PluginChannelHost> channel_host_; |
| 155 std::string mime_type_; | 155 std::string mime_type_; |
| 156 std::string clsid_; | 156 std::string clsid_; |
| 157 int instance_id_; | 157 int instance_id_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 175 | 175 |
| 176 // True if we got an invalidate from the plugin and are waiting for a paint. | 176 // True if we got an invalidate from the plugin and are waiting for a paint. |
| 177 bool invalidate_pending_; | 177 bool invalidate_pending_; |
| 178 | 178 |
| 179 // Used to desynchronize windowless painting. When WebKit paints, we bitblt | 179 // Used to desynchronize windowless painting. When WebKit paints, we bitblt |
| 180 // from our backing store of what the plugin rectangle looks like. The | 180 // from our backing store of what the plugin rectangle looks like. The |
| 181 // plugin paints into the transport store, and we copy that to our backing | 181 // plugin paints into the transport store, and we copy that to our backing |
| 182 // store when we get an invalidate from it. The background bitmap is used | 182 // store when we get an invalidate from it. The background bitmap is used |
| 183 // for transparent plugins, as they need the backgroud data during painting. | 183 // for transparent plugins, as they need the backgroud data during painting. |
| 184 bool transparent_; | 184 bool transparent_; |
| 185 scoped_ptr<SharedMemory> backing_store_; | 185 scoped_ptr<base::SharedMemory> backing_store_; |
| 186 scoped_ptr<gfx::PlatformCanvasWin> backing_store_canvas_; | 186 scoped_ptr<gfx::PlatformCanvasWin> backing_store_canvas_; |
| 187 scoped_ptr<SharedMemory> transport_store_; | 187 scoped_ptr<base::SharedMemory> transport_store_; |
| 188 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; | 188 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; |
| 189 scoped_ptr<SharedMemory> background_store_; | 189 scoped_ptr<base::SharedMemory> background_store_; |
| 190 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; | 190 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; |
| 191 | 191 |
| 192 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 192 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 195 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
| 196 | 196 |
| OLD | NEW |