OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux | 69 PLUGIN_QUIRK_WINDOWLESS_OFFSET_WINDOW_TO_DRAW = 256, // Linux |
70 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux | 70 PLUGIN_QUIRK_WINDOWLESS_INVALIDATE_AFTER_SET_WINDOW = 512, // Linux |
71 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows | 71 PLUGIN_QUIRK_NO_WINDOWLESS = 1024, // Windows |
72 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows | 72 PLUGIN_QUIRK_PATCH_REGENUMKEYEXW = 2048, // Windows |
73 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows | 73 PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS = 4096, // Windows |
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 PLUGIN_QUIRK_WINDOWLESS_NO_RIGHT_CLICK = 32768, // Linux |
76 PLUGIN_QUIRK_IGNORE_FIRST_SETWINDOW_CALL = 65536, // Windows. | 76 PLUGIN_QUIRK_IGNORE_FIRST_SETWINDOW_CALL = 65536, // Windows. |
77 PLUGIN_QUIRK_EMULATE_IME = 131072, // Windows. | 77 PLUGIN_QUIRK_EMULATE_IME = 131072, // Windows. |
78 PLUGIN_QUIRK_FAKE_WINDOW_FROM_POINT = 262144, // Windows. | 78 PLUGIN_QUIRK_FAKE_WINDOW_FROM_POINT = 262144, // Windows. |
| 79 PLUGIN_QUIRK_COPY_STREAM_DATA = 524288, // All platforms |
79 }; | 80 }; |
80 | 81 |
81 static WebPluginDelegateImpl* Create(WebPlugin* plugin, | 82 static WebPluginDelegateImpl* Create(WebPlugin* plugin, |
82 const base::FilePath& filename, | 83 const base::FilePath& filename, |
83 const std::string& mime_type); | 84 const std::string& mime_type); |
84 | 85 |
85 // WebPluginDelegate implementation | 86 // WebPluginDelegate implementation |
86 virtual bool Initialize(const GURL& url, | 87 virtual bool Initialize(const GURL& url, |
87 const std::vector<std::string>& arg_names, | 88 const std::vector<std::string>& arg_names, |
88 const std::vector<std::string>& arg_values, | 89 const std::vector<std::string>& arg_values, |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 501 |
501 // True if NPP_New did not return an error. | 502 // True if NPP_New did not return an error. |
502 bool creation_succeeded_; | 503 bool creation_succeeded_; |
503 | 504 |
504 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 505 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
505 }; | 506 }; |
506 | 507 |
507 } // namespace content | 508 } // namespace content |
508 | 509 |
509 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 510 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |