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

Side by Side Diff: content/child/npapi/webplugin.h

Issue 1662013002: Remove some dead NPAPI code after r363119. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused functions Created 4 years, 10 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
« no previous file with comments | « content/child/multipart_response_delegate_unittest.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // as well as the information about the HDC for paint operations. 42 // as well as the information about the HDC for paint operations.
43 virtual void SetWindow(gfx::PluginWindowHandle window) = 0; 43 virtual void SetWindow(gfx::PluginWindowHandle window) = 0;
44 44
45 // Whether input events should be sent to the delegate. 45 // Whether input events should be sent to the delegate.
46 virtual void SetAcceptsInputEvents(bool accepts) = 0; 46 virtual void SetAcceptsInputEvents(bool accepts) = 0;
47 47
48 // Called by the plugin delegate to let it know that the window is being 48 // Called by the plugin delegate to let it know that the window is being
49 // destroyed. 49 // destroyed.
50 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; 50 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0;
51 51
52 // Cancels a pending request.
53 virtual void CancelResource(unsigned long id) = 0;
54 virtual void Invalidate() = 0; 52 virtual void Invalidate() = 0;
55 virtual void InvalidateRect(const gfx::Rect& rect) = 0; 53 virtual void InvalidateRect(const gfx::Rect& rect) = 0;
56 54
57 // Returns the NPObject for the browser's window object. Does not 55 // Returns the NPObject for the browser's window object. Does not
58 // take a reference. 56 // take a reference.
59 virtual NPObject* GetWindowScriptNPObject() = 0; 57 virtual NPObject* GetWindowScriptNPObject() = 0;
60 58
61 // Returns the DOM element that loaded the plugin. Does not take a 59 // Returns the DOM element that loaded the plugin. Does not take a
62 // reference. 60 // reference.
63 virtual NPObject* GetPluginElement() = 0; 61 virtual NPObject* GetPluginElement() = 0;
(...skipping 10 matching lines...) Expand all
74 72
75 // Cancels document load. 73 // Cancels document load.
76 virtual void CancelDocumentLoad() = 0; 74 virtual void CancelDocumentLoad() = 0;
77 75
78 virtual void DidStartLoading() = 0; 76 virtual void DidStartLoading() = 0;
79 virtual void DidStopLoading() = 0; 77 virtual void DidStopLoading() = 0;
80 78
81 // Returns true iff in incognito mode. 79 // Returns true iff in incognito mode.
82 virtual bool IsOffTheRecord() = 0; 80 virtual bool IsOffTheRecord() = 0;
83 81
84 // Called when the WebPluginResourceClient instance is deleted.
85 virtual void ResourceClientDeleted(
86 WebPluginResourceClient* resource_client) {}
87
88 // Defers the loading of the resource identified by resource_id. This is
89 // controlled by the defer parameter.
90 virtual void SetDeferResourceLoading(unsigned long resource_id,
91 bool defer) = 0;
92
93 // Handles NPN_URLRedirectResponse calls issued by plugins in response to
94 // HTTP URL redirect notifications.
95 virtual void URLRedirectResponse(bool allow, int resource_id) = 0;
96
97 #if defined(OS_WIN) 82 #if defined(OS_WIN)
98 // |pump_messages_event| is a event handle which is used in NPP_HandleEvent 83 // |pump_messages_event| is a event handle which is used in NPP_HandleEvent
99 // calls to pump messages if the plugin enters a modal loop. 84 // calls to pump messages if the plugin enters a modal loop.
100 // |dummy_activation_window} is used to ensure correct keyboard activation. 85 // |dummy_activation_window} is used to ensure correct keyboard activation.
101 // It needs to be a child of the parent window. 86 // It needs to be a child of the parent window.
102 virtual void SetWindowlessData(HANDLE pump_messages_event, 87 virtual void SetWindowlessData(HANDLE pump_messages_event,
103 gfx::NativeViewId dummy_activation_window) = 0; 88 gfx::NativeViewId dummy_activation_window) = 0;
104 #endif 89 #endif
105 90
106 #if defined(OS_MACOSX) 91 #if defined(OS_MACOSX)
(...skipping 13 matching lines...) Expand all
120 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width, 105 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
121 int32_t height, 106 int32_t height,
122 uint32_t surface_id) = 0; 107 uint32_t surface_id) = 0;
123 virtual void AcceleratedPluginSwappedIOSurface() = 0; 108 virtual void AcceleratedPluginSwappedIOSurface() = 0;
124 #endif 109 #endif
125 }; 110 };
126 111
127 } // namespace content 112 } // namespace content
128 113
129 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 114 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « content/child/multipart_response_delegate_unittest.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698