Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 6625034: Clarify/fix fullscreen semantics, and add GetScreenSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698