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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.h

Issue 18082: Improve scrolling performance when there are many windowed plugins in a page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Call DestroyWindow on the right thread & ensure NPP_SetWindow is called right away Created 11 years, 11 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 | Annotate | Revision Log
OLDNEW
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_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void OnHandleEvent(const NPEvent& event, bool* handled, 58 void OnHandleEvent(const NPEvent& event, bool* handled,
59 WebCursor* cursor); 59 WebCursor* cursor);
60 60
61 void OnPaint(const gfx::Rect& damaged_rect); 61 void OnPaint(const gfx::Rect& damaged_rect);
62 void OnDidPaint(); 62 void OnDidPaint();
63 63
64 void OnPrint(PluginMsg_PrintResponse_Params* params); 64 void OnPrint(PluginMsg_PrintResponse_Params* params);
65 65
66 void OnUpdateGeometry(const gfx::Rect& window_rect, 66 void OnUpdateGeometry(const gfx::Rect& window_rect,
67 const gfx::Rect& clip_rect, 67 const gfx::Rect& clip_rect,
68 const std::vector<gfx::Rect>& cutout_rects,
69 bool visible,
70 const base::SharedMemoryHandle& windowless_buffer, 68 const base::SharedMemoryHandle& windowless_buffer,
71 const base::SharedMemoryHandle& background_buffer); 69 const base::SharedMemoryHandle& background_buffer);
72 void OnGetPluginScriptableObject(int* route_id, void** npobject_ptr); 70 void OnGetPluginScriptableObject(int* route_id, void** npobject_ptr);
73 void OnSendJavaScriptStream(const std::string& url, 71 void OnSendJavaScriptStream(const std::string& url,
74 const std::wstring& result, 72 const std::wstring& result,
75 bool success, bool notify_needed, 73 bool success, bool notify_needed,
76 int notify_data); 74 int notify_data);
77 75
78 void OnDidReceiveManualResponse( 76 void OnDidReceiveManualResponse(
79 const std::string& url, 77 const std::string& url,
(...skipping 18 matching lines...) Expand all
98 96
99 scoped_refptr<PluginChannel> channel_; 97 scoped_refptr<PluginChannel> channel_;
100 98
101 WebPluginDelegateImpl* delegate_; 99 WebPluginDelegateImpl* delegate_;
102 WebPluginProxy* webplugin_; 100 WebPluginProxy* webplugin_;
103 101
104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); 102 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub);
105 }; 103 };
106 104
107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 105 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698