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

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

Powered by Google App Engine
This is Rietveld 408576698