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 WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 // This flag indicates whether we started tracking a user gesture message. | 240 // This flag indicates whether we started tracking a user gesture message. |
241 bool user_gesture_message_posted_; | 241 bool user_gesture_message_posted_; |
242 | 242 |
243 // Runnable Method Factory used to invoke the OnUserGestureEnd method | 243 // Runnable Method Factory used to invoke the OnUserGestureEnd method |
244 // asynchronously. | 244 // asynchronously. |
245 #if !defined(OS_LINUX) | 245 #if !defined(OS_LINUX) |
246 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 246 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
247 #endif | 247 #endif |
248 | 248 |
249 #if defined(OS_WIN) | 249 #if defined(OS_WIN) |
250 // The plugin module handle. | |
251 HMODULE plugin_module_handle_; | |
252 | |
253 // TrackPopupMenu interceptor. Parameters are the same as the Win32 function | 250 // TrackPopupMenu interceptor. Parameters are the same as the Win32 function |
254 // TrackPopupMenu. | 251 // TrackPopupMenu. |
255 static BOOL WINAPI TrackPopupMenuPatch(HMENU menu, unsigned int flags, int x, | 252 static BOOL WINAPI TrackPopupMenuPatch(HMENU menu, unsigned int flags, int x, |
256 int y, int reserved, HWND window, | 253 int y, int reserved, HWND window, |
257 const RECT* rect); | 254 const RECT* rect); |
258 | 255 |
259 // SetCursor interceptor for windowless plugins. | 256 // SetCursor interceptor for windowless plugins. |
260 static HCURSOR WINAPI SetCursorPatch(HCURSOR cursor); | 257 static HCURSOR WINAPI SetCursorPatch(HCURSOR cursor); |
261 #endif | 258 #endif |
262 | 259 |
263 // Holds the current cursor set by the windowless plugin. | 260 // Holds the current cursor set by the windowless plugin. |
264 WebCursor current_windowless_cursor_; | 261 WebCursor current_windowless_cursor_; |
265 | 262 |
266 friend class WebPluginDelegate; | 263 friend class WebPluginDelegate; |
267 | 264 |
268 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); | 265 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); |
269 }; | 266 }; |
270 | 267 |
271 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 268 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |