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

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

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace gfx { 49 namespace gfx {
50 class Point; 50 class Point;
51 } 51 }
52 52
53 namespace gpu { 53 namespace gpu {
54 class CommandBuffer; 54 class CommandBuffer;
55 } 55 }
56 56
57 namespace ppapi { 57 namespace ppapi {
58 struct DeviceRefData;
darin (slow to review) 2012/04/30 18:57:02 are you sure about this change? class is sorted b
Bernhard Bauer 2012/04/30 19:30:36 Up in lines 34–38 we sort by type name :)
59 struct HostPortPair;
58 class PPB_HostResolver_Shared; 60 class PPB_HostResolver_Shared;
59 class PPB_X509Certificate_Fields; 61 class PPB_X509Certificate_Fields;
60 struct DeviceRefData;
61 struct HostPortPair;
62 struct Preferences; 62 struct Preferences;
63 } 63 }
64 64
65 namespace skia { 65 namespace skia {
66 class PlatformCanvas; 66 class PlatformCanvas;
67 } 67 }
68 68
69 namespace WebKit { 69 namespace WebKit {
70 struct WebCursorInfo;
70 class WebFileChooserCompletion; 71 class WebFileChooserCompletion;
72 struct WebFileChooserParams;
71 class WebGamepads; 73 class WebGamepads;
72 struct WebCursorInfo; 74 class WebPlugin;
73 struct WebFileChooserParams;
74 } 75 }
75 76
76 namespace webkit_glue { 77 namespace webkit_glue {
77 class ClipboardClient; 78 class ClipboardClient;
78 class P2PTransport; 79 class P2PTransport;
79 class NetworkListObserver; 80 class NetworkListObserver;
80 } // namespace webkit_glue 81 } // namespace webkit_glue
81 82
82 namespace webkit { 83 namespace webkit {
83 namespace ppapi { 84 namespace ppapi {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 // Indicates that the given instance is being destroyed. This is called from 328 // Indicates that the given instance is being destroyed. This is called from
328 // the destructor, so it's important that the instance is not dereferenced 329 // the destructor, so it's important that the instance is not dereferenced
329 // from this call. 330 // from this call.
330 virtual void InstanceDeleted(PluginInstance* instance) = 0; 331 virtual void InstanceDeleted(PluginInstance* instance) = 0;
331 332
332 // Returns a pointer (ownership not transferred) to the bitmap to paint the 333 // Returns a pointer (ownership not transferred) to the bitmap to paint the
333 // sad plugin screen with. Returns NULL on failure. 334 // sad plugin screen with. Returns NULL on failure.
334 virtual SkBitmap* GetSadPluginBitmap() = 0; 335 virtual SkBitmap* GetSadPluginBitmap() = 0;
335 336
337 // Creates a replacement plug-in that is shown when the plug-in at |file_path|
338 // couldn't be loaded.
339 virtual WebKit::WebPlugin* CreatePluginReplacement(
340 const FilePath& file_path) = 0;
341
336 // The caller will own the pointer returned from this. 342 // The caller will own the pointer returned from this.
337 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; 343 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
338 344
339 // The caller will own the pointer returned from this. 345 // The caller will own the pointer returned from this.
340 virtual PlatformContext3D* CreateContext3D() = 0; 346 virtual PlatformContext3D* CreateContext3D() = 0;
341 347
342 // If |device_id| is empty, the default video capture device will be used. The 348 // If |device_id| is empty, the default video capture device will be used. The
343 // user can start using the returned object to capture video right away. 349 // user can start using the returned object to capture video right away.
344 // Otherwise, the specified device will be used. The user needs to wait till 350 // Otherwise, the specified device will be used. The user needs to wait till
345 // |handler| gets an OnInitialized() notification to start using the returned 351 // |handler| gets an OnInitialized() notification to start using the returned
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 const EnumerateDevicesCallback& callback) = 0; 624 const EnumerateDevicesCallback& callback) = 0;
619 // Create a ClipboardClient for writing to the clipboard. The caller will own 625 // Create a ClipboardClient for writing to the clipboard. The caller will own
620 // the pointer to this. 626 // the pointer to this.
621 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
622 }; 628 };
623 629
624 } // namespace ppapi 630 } // namespace ppapi
625 } // namespace webkit 631 } // namespace webkit
626 632
627 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 633 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698