Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10837064: Corresponding change in Pepper since EnumerateDevices contract is changed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: keep current Pepper API Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 typedef base::Callback< 652 typedef base::Callback<
653 void (int /* request_id */, 653 void (int /* request_id */,
654 bool /* succeeded */, 654 bool /* succeeded */,
655 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> 655 const std::vector< ::ppapi::DeviceRefData>& /* devices */)>
656 EnumerateDevicesCallback; 656 EnumerateDevicesCallback;
657 657
658 // Enumerates devices of the specified type. The request ID passed into the 658 // Enumerates devices of the specified type. The request ID passed into the
659 // callback will be the same as the return value. 659 // callback will be the same as the return value.
660 virtual int EnumerateDevices(PP_DeviceType_Dev type, 660 virtual int EnumerateDevices(PP_DeviceType_Dev type,
661 const EnumerateDevicesCallback& callback) = 0; 661 const EnumerateDevicesCallback& callback) = 0;
662 // Stop enumerating devices of the specified |request_id|. The |request_id|
663 // is the return value of EnumerateDevicesCallback.
664 virtual void StopEnumerateDevices(int request_id) = 0;
662 // Create a ClipboardClient for writing to the clipboard. The caller will own 665 // Create a ClipboardClient for writing to the clipboard. The caller will own
663 // the pointer to this. 666 // the pointer to this.
664 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 667 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
665 668
666 // Returns a Device ID 669 // Returns a Device ID
667 virtual std::string GetDeviceID() = 0; 670 virtual std::string GetDeviceID() = 0;
668 671
669 // Returns restrictions on local data handled by the plug-in. 672 // Returns restrictions on local data handled by the plug-in.
670 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( 673 virtual PP_FlashLSORestrictions GetLocalDataRestrictions(
671 const GURL& document_url, 674 const GURL& document_url,
672 const GURL& plugin_url) = 0; 675 const GURL& plugin_url) = 0;
673 }; 676 };
674 677
675 } // namespace ppapi 678 } // namespace ppapi
676 } // namespace webkit 679 } // namespace webkit
677 680
678 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 681 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | webkit/plugins/ppapi/ppb_audio_input_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698