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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES = 16, // Win32 | 61 PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES = 16, // Win32 |
62 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32 | 62 PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32, // Win32 |
63 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32 | 63 PLUGIN_QUIRK_PATCH_SETCURSOR = 64, // Win32 |
64 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32 | 64 PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS = 128, // Win32 |
65 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux | 65 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux |
66 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux | 66 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux |
67 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows | 67 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows |
68 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows | 68 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows |
69 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows | 69 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows |
70 PLUGIN_QUIRK_ALLOW_FASTER_QUICKDRAW_PATH = 8192, // Mac | 70 PLUGIN_QUIRK_ALLOW_FASTER_QUICKDRAW_PATH = 8192, // Mac |
| 71 PLUGIN_QUIRK_WINDOWLESS_NO_RIGHT_CLICK = 32768, // Linux |
71 }; | 72 }; |
72 | 73 |
73 static WebPluginDelegateImpl* Create(const FilePath& filename, | 74 static WebPluginDelegateImpl* Create(const FilePath& filename, |
74 const std::string& mime_type, | 75 const std::string& mime_type, |
75 gfx::PluginWindowHandle containing_view); | 76 gfx::PluginWindowHandle containing_view); |
76 | 77 |
77 static bool IsPluginDelegateWindow(gfx::NativeWindow window); | 78 static bool IsPluginDelegateWindow(gfx::NativeWindow window); |
78 static bool GetPluginNameFromWindow(gfx::NativeWindow window, | 79 static bool GetPluginNameFromWindow(gfx::NativeWindow window, |
79 std::wstring *plugin_name); | 80 std::wstring *plugin_name); |
80 | 81 |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // Holds the depth of the HandleEvent callstack. | 485 // Holds the depth of the HandleEvent callstack. |
485 int handle_event_depth_; | 486 int handle_event_depth_; |
486 | 487 |
487 // Holds the current cursor set by the windowless plugin. | 488 // Holds the current cursor set by the windowless plugin. |
488 WebCursor current_windowless_cursor_; | 489 WebCursor current_windowless_cursor_; |
489 | 490 |
490 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 491 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
491 }; | 492 }; |
492 | 493 |
493 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 494 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |