| 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_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 namespace media { | 74 namespace media { |
| 75 class DecoderBuffer; | 75 class DecoderBuffer; |
| 76 class DecryptorClient; | 76 class DecryptorClient; |
| 77 } | 77 } |
| 78 | 78 |
| 79 namespace ppapi { | 79 namespace ppapi { |
| 80 struct InputEventData; | 80 struct InputEventData; |
| 81 struct PPP_Instance_Combined; | 81 struct PPP_Instance_Combined; |
| 82 class Resource; | 82 class Resource; |
| 83 struct URLRequestInfoData; |
| 83 } | 84 } |
| 84 | 85 |
| 85 namespace ui { | 86 namespace ui { |
| 86 class Range; | 87 class Range; |
| 87 } | 88 } |
| 88 | 89 |
| 89 namespace webkit { | 90 namespace webkit { |
| 90 namespace ppapi { | 91 namespace ppapi { |
| 91 | 92 |
| 92 class FullscreenContainer; | 93 class FullscreenContainer; |
| 93 class MessageChannel; | 94 class MessageChannel; |
| 94 class PluginDelegate; | 95 class PluginDelegate; |
| 95 class PluginModule; | 96 class PluginModule; |
| 96 class PluginObject; | 97 class PluginObject; |
| 97 class PPB_Graphics2D_Impl; | 98 class PPB_Graphics2D_Impl; |
| 98 class PPB_Graphics3D_Impl; | 99 class PPB_Graphics3D_Impl; |
| 99 class PPB_ImageData_Impl; | 100 class PPB_ImageData_Impl; |
| 100 class PPB_URLLoader_Impl; | 101 class PPB_URLLoader_Impl; |
| 101 class PPB_URLRequestInfo_Impl; | |
| 102 | 102 |
| 103 // Represents one time a plugin appears on one web page. | 103 // Represents one time a plugin appears on one web page. |
| 104 // | 104 // |
| 105 // Note: to get from a PP_Instance to a PluginInstance*, use the | 105 // Note: to get from a PP_Instance to a PluginInstance*, use the |
| 106 // ResourceTracker. | 106 // ResourceTracker. |
| 107 class WEBKIT_PLUGINS_EXPORT PluginInstance : | 107 class WEBKIT_PLUGINS_EXPORT PluginInstance : |
| 108 public base::RefCounted<PluginInstance>, | 108 public base::RefCounted<PluginInstance>, |
| 109 public base::SupportsWeakPtr<PluginInstance>, | 109 public base::SupportsWeakPtr<PluginInstance>, |
| 110 public ::ppapi::PPB_Instance_Shared { | 110 public ::ppapi::PPB_Instance_Shared { |
| 111 public: | 111 public: |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 bool flash_fullscreen() const { return flash_fullscreen_; } | 320 bool flash_fullscreen() const { return flash_fullscreen_; } |
| 321 | 321 |
| 322 // Switches between fullscreen and normal mode. The transition is | 322 // Switches between fullscreen and normal mode. The transition is |
| 323 // asynchronous. WebKit will trigger corresponding VewChanged calls. | 323 // asynchronous. WebKit will trigger corresponding VewChanged calls. |
| 324 // Returns true on success, false on failure (e.g. trying to enter fullscreen | 324 // Returns true on success, false on failure (e.g. trying to enter fullscreen |
| 325 // when not processing a user gesture or trying to set fullscreen when | 325 // when not processing a user gesture or trying to set fullscreen when |
| 326 // already in fullscreen mode). | 326 // already in fullscreen mode). |
| 327 bool SetFullscreen(bool fullscreen); | 327 bool SetFullscreen(bool fullscreen); |
| 328 | 328 |
| 329 // Implementation of PPB_Flash. | 329 // Implementation of PPB_Flash. |
| 330 int32_t Navigate(PPB_URLRequestInfo_Impl* request, | 330 int32_t Navigate(const ::ppapi::URLRequestInfoData& request, |
| 331 const char* target, | 331 const char* target, |
| 332 bool from_user_action); | 332 bool from_user_action); |
| 333 bool IsRectTopmost(const gfx::Rect& rect); | 333 bool IsRectTopmost(const gfx::Rect& rect); |
| 334 | 334 |
| 335 // Implementation of PPP_Messaging. | 335 // Implementation of PPP_Messaging. |
| 336 void HandleMessage(PP_Var message); | 336 void HandleMessage(PP_Var message); |
| 337 | 337 |
| 338 PluginDelegate::PlatformContext3D* CreateContext3D(); | 338 PluginDelegate::PlatformContext3D* CreateContext3D(); |
| 339 | 339 |
| 340 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe | 340 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; | 757 typedef std::map<uint32_t, media::Decryptor::DecryptCB> DecryptionCBMap; |
| 758 DecryptionCBMap pending_decryption_cbs_; | 758 DecryptionCBMap pending_decryption_cbs_; |
| 759 | 759 |
| 760 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 760 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 761 }; | 761 }; |
| 762 | 762 |
| 763 } // namespace ppapi | 763 } // namespace ppapi |
| 764 } // namespace webkit | 764 } // namespace webkit |
| 765 | 765 |
| 766 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 766 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |