summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/plugin_constants_win.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 01:27:38 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 01:27:38 +0000
commit4115925c9a0c074e79c0b5a181a7cf8d50180b86 (patch)
tree779ffaa81d9c4e1c6d4a491241f0f44cb0e1b815 /webkit/glue/plugins/plugin_constants_win.h
parent5bc0feb22687326cc26214c100c4658c79ce314f (diff)
downloadchromium_src-4115925c9a0c074e79c0b5a181a7cf8d50180b86.zip
chromium_src-4115925c9a0c074e79c0b5a181a7cf8d50180b86.tar.gz
chromium_src-4115925c9a0c074e79c0b5a181a7cf8d50180b86.tar.bz2
More speedup of scrolling when many windowed plugins in a page. Scrolling is now at parity with single process browsers in my testing.
This works by making painting of child windows asynchronous. The key is to send, not post, the custom message. This allows the redraw message to jump the queue and get dispatched before other queued [Windows, IPC] messages, which eliminates painting artifacts. Now that painting is asynchronous, I had to take out the SWP_NOREDRAW flag to DeferWindowPos. While it's slightly faster without it, the visual aritfacts are noticable. Review URL: http://codereview.chromium.org/18637 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/plugin_constants_win.h')
-rw-r--r--webkit/glue/plugins/plugin_constants_win.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/glue/plugins/plugin_constants_win.h b/webkit/glue/plugins/plugin_constants_win.h
index 9b91335..170ae62 100644
--- a/webkit/glue/plugins/plugin_constants_win.h
+++ b/webkit/glue/plugins/plugin_constants_win.h
@@ -20,4 +20,17 @@
#define kActiveXShimFileNameForMediaPlayer \
L"Microsoft\xAE Windows Media Player Firefox Plugin"
+
+// The window class name for a plugin window.
+#define kNativeWindowClassName L"NativeWindowClass"
+
+// The name of the window class name for the wrapper HWND around the actual
+// plugin window that's used when running in multi-process mode. This window
+// is created on the browser UI thread.
+#define kWrapperNativeWindowClassName L"WrapperNativeWindowClass"
+
+// The name of the custom window message that the browser uses to tell the
+// plugin process to paint a window.
+#define kPaintMessageName L"Chrome_CustomPaint"
+
#endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H_