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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // Tell the browser when resource loading starts/ends. | 602 // Tell the browser when resource loading starts/ends. |
603 virtual void DidStartLoading() = 0; | 603 virtual void DidStartLoading() = 0; |
604 virtual void DidStopLoading() = 0; | 604 virtual void DidStopLoading() = 0; |
605 | 605 |
606 // Sets restrictions on how the content can be used (i.e. no print/copy). | 606 // Sets restrictions on how the content can be used (i.e. no print/copy). |
607 virtual void SetContentRestriction(int restrictions) = 0; | 607 virtual void SetContentRestriction(int restrictions) = 0; |
608 | 608 |
609 // Tells the browser to bring up SaveAs dialog to save specified URL. | 609 // Tells the browser to bring up SaveAs dialog to save specified URL. |
610 virtual void SaveURLAs(const GURL& url) = 0; | 610 virtual void SaveURLAs(const GURL& url) = 0; |
611 | 611 |
612 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | |
613 | |
614 // Create an anonymous shared memory segment of size |size| bytes, and return | 612 // Create an anonymous shared memory segment of size |size| bytes, and return |
615 // a pointer to it, or NULL on error. Caller owns the returned pointer. | 613 // a pointer to it, or NULL on error. Caller owns the returned pointer. |
616 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 614 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
617 | 615 |
618 // Returns the current preferences. | 616 // Returns the current preferences. |
619 virtual ::ppapi::Preferences GetPreferences() = 0; | 617 virtual ::ppapi::Preferences GetPreferences() = 0; |
620 | 618 |
621 // Locks the mouse for |instance|. If false is returned, the lock is not | 619 // Locks the mouse for |instance|. If false is returned, the lock is not |
622 // possible. If true is returned then the lock is pending. Success or | 620 // possible. If true is returned then the lock is pending. Success or |
623 // failure will be delivered asynchronously via | 621 // failure will be delivered asynchronously via |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 // Returns restrictions on local data handled by the plug-in. | 668 // Returns restrictions on local data handled by the plug-in. |
671 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 669 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
672 const GURL& document_url, | 670 const GURL& document_url, |
673 const GURL& plugin_url) = 0; | 671 const GURL& plugin_url) = 0; |
674 }; | 672 }; |
675 | 673 |
676 } // namespace ppapi | 674 } // namespace ppapi |
677 } // namespace webkit | 675 } // namespace webkit |
678 | 676 |
679 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 677 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |