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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> | 658 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> |
659 EnumerateDevicesCallback; | 659 EnumerateDevicesCallback; |
660 | 660 |
661 // Enumerates devices of the specified type. The request ID passed into the | 661 // Enumerates devices of the specified type. The request ID passed into the |
662 // callback will be the same as the return value. | 662 // callback will be the same as the return value. |
663 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 663 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
664 const EnumerateDevicesCallback& callback) = 0; | 664 const EnumerateDevicesCallback& callback) = 0; |
665 // Stop enumerating devices of the specified |request_id|. The |request_id| | 665 // Stop enumerating devices of the specified |request_id|. The |request_id| |
666 // is the return value of EnumerateDevicesCallback. | 666 // is the return value of EnumerateDevicesCallback. |
667 virtual void StopEnumerateDevices(int request_id) = 0; | 667 virtual void StopEnumerateDevices(int request_id) = 0; |
668 // Create a ClipboardClient for writing to the clipboard. The caller will own | |
669 // the pointer to this. | |
670 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | |
671 | 668 |
672 // Returns a Device ID | 669 // Returns a Device ID |
673 virtual std::string GetDeviceID() = 0; | 670 virtual std::string GetDeviceID() = 0; |
674 | 671 |
675 // Returns restrictions on local data handled by the plug-in. | 672 // Returns restrictions on local data handled by the plug-in. |
676 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 673 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
677 const GURL& document_url, | 674 const GURL& document_url, |
678 const GURL& plugin_url) = 0; | 675 const GURL& plugin_url) = 0; |
679 }; | 676 }; |
680 | 677 |
681 } // namespace ppapi | 678 } // namespace ppapi |
682 } // namespace webkit | 679 } // namespace webkit |
683 | 680 |
684 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 681 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |