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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void DropWindowScriptObject() { window_script_object_ = NULL; } | 45 void DropWindowScriptObject() { window_script_object_ = NULL; } |
46 | 46 |
47 // Called to flush any deferred geometry changes to the plugin process. | 47 // Called to flush any deferred geometry changes to the plugin process. |
48 virtual void FlushGeometryUpdates(); | 48 virtual void FlushGeometryUpdates(); |
49 | 49 |
50 // WebPluginDelegate implementation: | 50 // WebPluginDelegate implementation: |
51 virtual void PluginDestroyed(); | 51 virtual void PluginDestroyed(); |
52 virtual bool Initialize(const GURL& url, char** argn, char** argv, int argc, | 52 virtual bool Initialize(const GURL& url, char** argn, char** argv, int argc, |
53 WebPlugin* plugin, bool load_manually); | 53 WebPlugin* plugin, bool load_manually); |
54 virtual void UpdateGeometry(const gfx::Rect& window_rect, | 54 virtual void UpdateGeometry(const gfx::Rect& window_rect, |
55 const gfx::Rect& clip_rect, bool visible); | 55 const gfx::Rect& clip_rect, |
| 56 const std::vector<gfx::Rect>& cutout_rects, |
| 57 bool visible); |
56 virtual void Paint(HDC hdc, const gfx::Rect& rect); | 58 virtual void Paint(HDC hdc, const gfx::Rect& rect); |
57 virtual void Print(HDC hdc); | 59 virtual void Print(HDC hdc); |
58 virtual NPObject* GetPluginScriptableObject(); | 60 virtual NPObject* GetPluginScriptableObject(); |
59 virtual void DidFinishLoadWithReason(NPReason reason); | 61 virtual void DidFinishLoadWithReason(NPReason reason); |
60 virtual void SetFocus(); | 62 virtual void SetFocus(); |
61 virtual bool HandleEvent(NPEvent* event, WebCursor* cursor); | 63 virtual bool HandleEvent(NPEvent* event, WebCursor* cursor); |
62 virtual int GetProcessId(); | 64 virtual int GetProcessId(); |
63 | 65 |
64 // IPC::Channel::Listener implementation: | 66 // IPC::Channel::Listener implementation: |
65 virtual void OnMessageReceived(const IPC::Message& msg); | 67 virtual void OnMessageReceived(const IPC::Message& msg); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 bool windowless_; | 152 bool windowless_; |
151 bool first_paint_; | 153 bool first_paint_; |
152 scoped_refptr<PluginChannelHost> channel_host_; | 154 scoped_refptr<PluginChannelHost> channel_host_; |
153 std::string mime_type_; | 155 std::string mime_type_; |
154 std::string clsid_; | 156 std::string clsid_; |
155 int instance_id_; | 157 int instance_id_; |
156 std::wstring plugin_path_; | 158 std::wstring plugin_path_; |
157 | 159 |
158 gfx::Rect plugin_rect_; | 160 gfx::Rect plugin_rect_; |
159 gfx::Rect deferred_clip_rect_; | 161 gfx::Rect deferred_clip_rect_; |
| 162 std::vector<gfx::Rect> deferred_cutout_rects_; |
160 bool send_deferred_update_geometry_; | 163 bool send_deferred_update_geometry_; |
161 bool visible_; | 164 bool visible_; |
162 | 165 |
163 NPObject* npobject_; | 166 NPObject* npobject_; |
164 NPObjectStub* window_script_object_; | 167 NPObjectStub* window_script_object_; |
165 | 168 |
166 // Event passed in by the plugin process and is used to decide if | 169 // Event passed in by the plugin process and is used to decide if |
167 // messages need to be pumped in the NPP_HandleEvent sync call. | 170 // messages need to be pumped in the NPP_HandleEvent sync call. |
168 ScopedHandle modal_loop_pump_messages_event_; | 171 ScopedHandle modal_loop_pump_messages_event_; |
169 | 172 |
(...skipping 14 matching lines...) Expand all Loading... |
184 scoped_ptr<SharedMemory> transport_store_; | 187 scoped_ptr<SharedMemory> transport_store_; |
185 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; | 188 scoped_ptr<gfx::PlatformCanvasWin> transport_store_canvas_; |
186 scoped_ptr<SharedMemory> background_store_; | 189 scoped_ptr<SharedMemory> background_store_; |
187 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; | 190 scoped_ptr<gfx::PlatformCanvasWin> background_store_canvas_; |
188 | 191 |
189 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 192 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
190 }; | 193 }; |
191 | 194 |
192 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 195 #endif // #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
193 | 196 |
OLD | NEW |