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

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

Issue 7714017: Reimplement the Pepper fullscreen API to use webkitRequestFullScreen and friends. (Closed) Base URL: ssh://matter.syd/usr/local/google/chromium2/src@master
Patch Set: Created 9 years, 4 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
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_old.h" 10 #include "base/callback_old.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } // namespace webkit_glue 68 } // namespace webkit_glue
69 69
70 struct PP_Flash_NetAddress; 70 struct PP_Flash_NetAddress;
71 71
72 class TransportDIB; 72 class TransportDIB;
73 73
74 namespace webkit { 74 namespace webkit {
75 namespace ppapi { 75 namespace ppapi {
76 76
77 class FileIO; 77 class FileIO;
78 class FullscreenContainer;
79 class PepperFilePath; 78 class PepperFilePath;
80 class PluginInstance; 79 class PluginInstance;
81 class PluginModule; 80 class PluginModule;
82 class PPB_Broker_Impl; 81 class PPB_Broker_Impl;
83 class PPB_Flash_Menu_Impl; 82 class PPB_Flash_Menu_Impl;
84 class PPB_Flash_NetConnector_Impl; 83 class PPB_Flash_NetConnector_Impl;
85 84
86 // Virtual interface that the browser implements to implement features for 85 // Virtual interface that the browser implements to implement features for
87 // PPAPI plugins. 86 // PPAPI plugins.
88 class PluginDelegate { 87 class PluginDelegate {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, 379 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
381 const struct PP_Flash_NetAddress* addr) = 0; 380 const struct PP_Flash_NetAddress* addr) = 0;
382 381
383 // Show the given context menu at the given position (in the plugin's 382 // Show the given context menu at the given position (in the plugin's
384 // coordinates). 383 // coordinates).
385 virtual int32_t ShowContextMenu( 384 virtual int32_t ShowContextMenu(
386 PluginInstance* instance, 385 PluginInstance* instance,
387 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 386 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
388 const gfx::Point& position) = 0; 387 const gfx::Point& position) = 0;
389 388
390 // Create a fullscreen container for a plugin instance. This effectively 389 virtual void SetFullscreen(PluginInstance *instance, bool fullscreen) = 0;
391 // switches the plugin to fullscreen.
392 virtual FullscreenContainer* CreateFullscreenContainer(
393 PluginInstance* instance) = 0;
394 390
395 // Gets the size of the screen. The fullscreen window will be created at that 391 // Gets the size of the screen. The fullscreen window will be created at that
396 // size. 392 // size.
397 virtual gfx::Size GetScreenSize() = 0; 393 virtual gfx::Size GetScreenSize() = 0;
398 394
399 // Returns a string with the name of the default 8-bit char encoding. 395 // Returns a string with the name of the default 8-bit char encoding.
400 virtual std::string GetDefaultEncoding() = 0; 396 virtual std::string GetDefaultEncoding() = 0;
401 397
402 // Sets the mininum and maximium zoom factors. 398 // Sets the mininum and maximium zoom factors.
403 virtual void ZoomLimitsChanged(double minimum_factor, 399 virtual void ZoomLimitsChanged(double minimum_factor,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 441 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
446 442
447 // Returns the current preferences. 443 // Returns the current preferences.
448 virtual ::ppapi::Preferences GetPreferences() = 0; 444 virtual ::ppapi::Preferences GetPreferences() = 0;
449 }; 445 };
450 446
451 } // namespace ppapi 447 } // namespace ppapi
452 } // namespace webkit 448 } // namespace webkit
453 449
454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 450 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698