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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 virtual void SetContentRestriction(int restrictions) = 0; | 557 virtual void SetContentRestriction(int restrictions) = 0; |
558 | 558 |
559 // Tells the browser to bring up SaveAs dialog to save specified URL. | 559 // Tells the browser to bring up SaveAs dialog to save specified URL. |
560 virtual void SaveURLAs(const GURL& url) = 0; | 560 virtual void SaveURLAs(const GURL& url) = 0; |
561 | 561 |
562 // Creates P2PTransport object. | 562 // Creates P2PTransport object. |
563 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 563 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
564 | 564 |
565 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | 565 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; |
566 | 566 |
567 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | |
568 // necessary. | |
569 virtual std::string GetFlashCommandLineArgs() = 0; | |
570 | |
571 // Create an anonymous shared memory segment of size |size| bytes, and return | 567 // Create an anonymous shared memory segment of size |size| bytes, and return |
572 // a pointer to it, or NULL on error. Caller owns the returned pointer. | 568 // a pointer to it, or NULL on error. Caller owns the returned pointer. |
573 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 569 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
574 | 570 |
575 // Returns the current preferences. | 571 // Returns the current preferences. |
576 virtual ::ppapi::Preferences GetPreferences() = 0; | 572 virtual ::ppapi::Preferences GetPreferences() = 0; |
577 | 573 |
578 // Locks the mouse for |instance|. If false is returned, the lock is not | 574 // Locks the mouse for |instance|. If false is returned, the lock is not |
579 // possible. If true is returned then the lock is pending. Success or | 575 // possible. If true is returned then the lock is pending. Success or |
580 // failure will be delivered asynchronously via | 576 // failure will be delivered asynchronously via |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 const EnumerateDevicesCallback& callback) = 0; | 618 const EnumerateDevicesCallback& callback) = 0; |
623 // Create a ClipboardClient for writing to the clipboard. The caller will own | 619 // Create a ClipboardClient for writing to the clipboard. The caller will own |
624 // the pointer to this. | 620 // the pointer to this. |
625 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 621 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
626 }; | 622 }; |
627 | 623 |
628 } // namespace ppapi | 624 } // namespace ppapi |
629 } // namespace webkit | 625 } // namespace webkit |
630 | 626 |
631 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 627 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |