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

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

Issue 10918182: Don't require a recreation of the context when fullscreening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <vector> 9 #include <vector>
10 10
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // couldn't be loaded. 358 // couldn't be loaded.
359 virtual WebKit::WebPlugin* CreatePluginReplacement( 359 virtual WebKit::WebPlugin* CreatePluginReplacement(
360 const FilePath& file_path) = 0; 360 const FilePath& file_path) = 0;
361 361
362 // The caller will own the pointer returned from this. 362 // The caller will own the pointer returned from this.
363 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; 363 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
364 364
365 // The caller will own the pointer returned from this. 365 // The caller will own the pointer returned from this.
366 virtual PlatformContext3D* CreateContext3D() = 0; 366 virtual PlatformContext3D* CreateContext3D() = 0;
367 367
368 // Set that the context will now present to the delegate.
369 virtual void ReparentContext(PlatformContext3D*) = 0;
370
368 // If |device_id| is empty, the default video capture device will be used. The 371 // If |device_id| is empty, the default video capture device will be used. The
369 // user can start using the returned object to capture video right away. 372 // user can start using the returned object to capture video right away.
370 // Otherwise, the specified device will be used. The user needs to wait till 373 // Otherwise, the specified device will be used. The user needs to wait till
371 // |handler| gets an OnInitialized() notification to start using the returned 374 // |handler| gets an OnInitialized() notification to start using the returned
372 // object. 375 // object.
373 virtual PlatformVideoCapture* CreateVideoCapture( 376 virtual PlatformVideoCapture* CreateVideoCapture(
374 const std::string& device_id, 377 const std::string& device_id,
375 PlatformVideoCaptureEventHandler* handler) = 0; 378 PlatformVideoCaptureEventHandler* handler) = 0;
376 379
377 // The caller will own the pointer returned from this. 380 // The caller will own the pointer returned from this.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 // Returns restrictions on local data handled by the plug-in. 675 // Returns restrictions on local data handled by the plug-in.
673 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( 676 virtual PP_FlashLSORestrictions GetLocalDataRestrictions(
674 const GURL& document_url, 677 const GURL& document_url,
675 const GURL& plugin_url) = 0; 678 const GURL& plugin_url) = 0;
676 }; 679 };
677 680
678 } // namespace ppapi 681 } // namespace ppapi
679 } // namespace webkit 682 } // namespace webkit
680 683
681 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 684 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698