OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 9 |
10 #include "base/callback_old.h" | 10 #include "base/callback_old.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } // namespace webkit_glue | 72 } // namespace webkit_glue |
73 | 73 |
74 struct PP_Flash_NetAddress; | 74 struct PP_Flash_NetAddress; |
75 | 75 |
76 class TransportDIB; | 76 class TransportDIB; |
77 | 77 |
78 namespace webkit { | 78 namespace webkit { |
79 namespace ppapi { | 79 namespace ppapi { |
80 | 80 |
81 class FileIO; | 81 class FileIO; |
| 82 class FullscreenContainer; |
82 class PepperFilePath; | 83 class PepperFilePath; |
83 class PluginInstance; | 84 class PluginInstance; |
84 class PluginModule; | 85 class PluginModule; |
85 class PPB_Broker_Impl; | 86 class PPB_Broker_Impl; |
86 class PPB_Flash_Menu_Impl; | 87 class PPB_Flash_Menu_Impl; |
87 class PPB_Flash_NetConnector_Impl; | 88 class PPB_Flash_NetConnector_Impl; |
88 | 89 |
89 // Virtual interface that the browser implements to implement features for | 90 // Virtual interface that the browser implements to implement features for |
90 // PPAPI plugins. | 91 // PPAPI plugins. |
91 class PluginDelegate { | 92 class PluginDelegate { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 383 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
383 const struct PP_Flash_NetAddress* addr) = 0; | 384 const struct PP_Flash_NetAddress* addr) = 0; |
384 | 385 |
385 // Show the given context menu at the given position (in the plugin's | 386 // Show the given context menu at the given position (in the plugin's |
386 // coordinates). | 387 // coordinates). |
387 virtual int32_t ShowContextMenu( | 388 virtual int32_t ShowContextMenu( |
388 PluginInstance* instance, | 389 PluginInstance* instance, |
389 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 390 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
390 const gfx::Point& position) = 0; | 391 const gfx::Point& position) = 0; |
391 | 392 |
| 393 // Create a fullscreen container for a plugin instance. This effectively |
| 394 // switches the plugin to fullscreen. |
| 395 virtual FullscreenContainer* CreateFullscreenContainer( |
| 396 PluginInstance* instance) = 0; |
| 397 |
392 // Gets the size of the screen. The fullscreen window will be created at that | 398 // Gets the size of the screen. The fullscreen window will be created at that |
393 // size. | 399 // size. |
394 virtual gfx::Size GetScreenSize() = 0; | 400 virtual gfx::Size GetScreenSize() = 0; |
395 | 401 |
396 // Returns a string with the name of the default 8-bit char encoding. | 402 // Returns a string with the name of the default 8-bit char encoding. |
397 virtual std::string GetDefaultEncoding() = 0; | 403 virtual std::string GetDefaultEncoding() = 0; |
398 | 404 |
399 // Sets the mininum and maximium zoom factors. | 405 // Sets the mininum and maximium zoom factors. |
400 virtual void ZoomLimitsChanged(double minimum_factor, | 406 virtual void ZoomLimitsChanged(double minimum_factor, |
401 double maximum_factor) = 0; | 407 double maximum_factor) = 0; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
440 | 446 |
441 // Returns the current preferences. | 447 // Returns the current preferences. |
442 virtual ::ppapi::Preferences GetPreferences() = 0; | 448 virtual ::ppapi::Preferences GetPreferences() = 0; |
443 }; | 449 }; |
444 | 450 |
445 } // namespace ppapi | 451 } // namespace ppapi |
446 } // namespace webkit | 452 } // namespace webkit |
447 | 453 |
448 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |