Index: ppapi/thunk/ppb_flash_fullscreen_api.h |
diff --git a/ppapi/thunk/ppb_flash_fullscreen_api.h b/ppapi/thunk/ppb_flash_fullscreen_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d1435b55f8658be26af593d4e40fddc269bfb5f5 |
--- /dev/null |
+++ b/ppapi/thunk/ppb_flash_fullscreen_api.h |
@@ -0,0 +1,35 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_ |
+#define PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_ |
+ |
+#include "ppapi/shared_impl/singleton_resource_id.h" |
+#include "ppapi/thunk/ppapi_thunk_export.h" |
+ |
+namespace ppapi { |
+namespace thunk { |
+ |
+class PPAPI_THUNK_EXPORT PPB_Flash_Fullscreen_API { |
+ public: |
+ virtual ~PPB_Flash_Fullscreen_API() {} |
+ |
+ virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; |
+ virtual PP_Bool SetFullscreen(PP_Instance instance, |
+ PP_Bool fullscreen) = 0; |
+ |
+ // Internal function used to update whether or not Flash fullscreen is enabled |
+ // in the plugin side. The value is passed with a |
+ // PpapiMsg_PPPInstance_DidChangeView message. |
+ virtual void SetLocalIsFullscreen(PP_Instance instance, |
+ PP_Bool fullscreen) = 0; |
+ |
+ static const SingletonResourceID kSingletonResourceID = |
+ FLASH_FULLSCREEN_SINGLETON_ID; |
+}; |
+ |
+} // namespace thunk |
+} // namespace ppapi |
+ |
+#endif // PPAPI_THUNK_PPB_FLASH_FULLSCREEN_API_H_ |