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

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

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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/npapi/plugin_instance.cc ('k') | content/child/npapi/webplugin_delegate_impl.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 18 matching lines...) Expand all
29 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
30 class WebPluginAcceleratedSurface; 30 class WebPluginAcceleratedSurface;
31 #endif 31 #endif
32 32
33 // The WebKit side of a plugin implementation. It provides wrappers around 33 // The WebKit side of a plugin implementation. It provides wrappers around
34 // operations that need to interact with the frame and other WebCore objects. 34 // operations that need to interact with the frame and other WebCore objects.
35 class WebPlugin { 35 class WebPlugin {
36 public: 36 public:
37 virtual ~WebPlugin() {} 37 virtual ~WebPlugin() {}
38 38
39 // Called by the plugin delegate to let the WebPlugin know if the plugin is
40 // windowed (i.e. handle is not NULL) or windowless (handle is NULL). This
41 // tells the WebPlugin to send mouse/keyboard events to the plugin delegate,
42 // as well as the information about the HDC for paint operations.
43 virtual void SetWindow(gfx::PluginWindowHandle window) = 0;
44
45 // Whether input events should be sent to the delegate.
46 virtual void SetAcceptsInputEvents(bool accepts) = 0;
47
48 // Called by the plugin delegate to let it know that the window is being
49 // destroyed.
50 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0;
51
52 virtual void Invalidate() = 0; 39 virtual void Invalidate() = 0;
53 virtual void InvalidateRect(const gfx::Rect& rect) = 0; 40 virtual void InvalidateRect(const gfx::Rect& rect) = 0;
54 41
55 // Returns the NPObject for the browser's window object. Does not 42 // Returns the NPObject for the browser's window object. Does not
56 // take a reference. 43 // take a reference.
57 virtual NPObject* GetWindowScriptNPObject() = 0; 44 virtual NPObject* GetWindowScriptNPObject() = 0;
58 45
59 // Returns the DOM element that loaded the plugin. Does not take a 46 // Returns the DOM element that loaded the plugin. Does not take a
60 // reference. 47 // reference.
61 virtual NPObject* GetPluginElement() = 0; 48 virtual NPObject* GetPluginElement() = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width, 92 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
106 int32_t height, 93 int32_t height,
107 uint32_t surface_id) = 0; 94 uint32_t surface_id) = 0;
108 virtual void AcceleratedPluginSwappedIOSurface() = 0; 95 virtual void AcceleratedPluginSwappedIOSurface() = 0;
109 #endif 96 #endif
110 }; 97 };
111 98
112 } // namespace content 99 } // namespace content
113 100
114 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 101 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_instance.cc ('k') | content/child/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698