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.h" | 10 #include "base/callback.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // coordinates). | 301 // coordinates). |
302 virtual int32_t ShowContextMenu( | 302 virtual int32_t ShowContextMenu( |
303 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 303 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
304 const gfx::Point& position) = 0; | 304 const gfx::Point& position) = 0; |
305 | 305 |
306 // Create a fullscreen container for a plugin instance. This effectively | 306 // Create a fullscreen container for a plugin instance. This effectively |
307 // switches the plugin to fullscreen. | 307 // switches the plugin to fullscreen. |
308 virtual FullscreenContainer* CreateFullscreenContainer( | 308 virtual FullscreenContainer* CreateFullscreenContainer( |
309 PluginInstance* instance) = 0; | 309 PluginInstance* instance) = 0; |
310 | 310 |
| 311 // Gets the size of the screen. The fullscreen window will be created at that |
| 312 // size. |
| 313 virtual gfx::Size GetScreenSize() = 0; |
| 314 |
311 // Returns a string with the name of the default 8-bit char encoding. | 315 // Returns a string with the name of the default 8-bit char encoding. |
312 virtual std::string GetDefaultEncoding() = 0; | 316 virtual std::string GetDefaultEncoding() = 0; |
313 | 317 |
314 // Sets the mininum and maximium zoom factors. | 318 // Sets the mininum and maximium zoom factors. |
315 virtual void ZoomLimitsChanged(double minimum_factor, | 319 virtual void ZoomLimitsChanged(double minimum_factor, |
316 double maximum_factor) = 0; | 320 double maximum_factor) = 0; |
317 | 321 |
318 // Retrieves the proxy information for the given URL in PAC format. On error, | 322 // Retrieves the proxy information for the given URL in PAC format. On error, |
319 // this will return an empty string. | 323 // this will return an empty string. |
320 virtual std::string ResolveProxy(const GURL& url) = 0; | 324 virtual std::string ResolveProxy(const GURL& url) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
334 // | 338 // |
335 // TODO(sergeyu): Replace this with a higher-level P2P API | 339 // TODO(sergeyu): Replace this with a higher-level P2P API |
336 // implementation. | 340 // implementation. |
337 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 341 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
338 }; | 342 }; |
339 | 343 |
340 } // namespace ppapi | 344 } // namespace ppapi |
341 } // namespace webkit | 345 } // namespace webkit |
342 | 346 |
343 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 347 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |