OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32 | 65 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32 |
66 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32 | 66 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32 |
67 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32 | 67 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32 |
68 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux | 68 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux |
69 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux | 69 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux |
70 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows | 70 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows |
71 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows | 71 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows |
72 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows | 72 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows |
73 PLUGIN_QUIRK_ALLOW_FASTER_QUICKDRAW_PATH = 8192, // Mac | 73 PLUGIN_QUIRK_ALLOW_FASTER_QUICKDRAW_PATH = 8192, // Mac |
74 PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE = 16384, // Windows | 74 PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE = 16384, // Windows |
| 75 PLUGIN_QUIRK_WINDOWLESS_NO_RIGHT_CLICK = 32768, // Linux |
75 }; | 76 }; |
76 | 77 |
77 static WebPluginDelegateImpl* Create(const FilePath& filename, | 78 static WebPluginDelegateImpl* Create(const FilePath& filename, |
78 const std::string& mime_type, | 79 const std::string& mime_type, |
79 gfx::PluginWindowHandle containing_view); | 80 gfx::PluginWindowHandle containing_view); |
80 | 81 |
81 static bool IsPluginDelegateWindow(gfx::NativeWindow window); | 82 static bool IsPluginDelegateWindow(gfx::NativeWindow window); |
82 static bool GetPluginNameFromWindow(gfx::NativeWindow window, | 83 static bool GetPluginNameFromWindow(gfx::NativeWindow window, |
83 std::wstring *plugin_name); | 84 std::wstring *plugin_name); |
84 | 85 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // Holds the depth of the HandleEvent callstack. | 473 // Holds the depth of the HandleEvent callstack. |
473 int handle_event_depth_; | 474 int handle_event_depth_; |
474 | 475 |
475 // Holds the current cursor set by the windowless plugin. | 476 // Holds the current cursor set by the windowless plugin. |
476 WebCursor current_windowless_cursor_; | 477 WebCursor current_windowless_cursor_; |
477 | 478 |
478 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 479 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
479 }; | 480 }; |
480 | 481 |
481 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 482 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |