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

Side by Side Diff: webkit/glue/webplugin.h

Issue 150034: linux: only create browser-side plugin container after plugin requests it (Closed)
Patch Set: fix chrome build Created 11 years, 5 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 | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_GLUE_WEBPLUGIN_H__ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H__
6 #define WEBKIT_GLUE_WEBPLUGIN_H__ 6 #define WEBKIT_GLUE_WEBPLUGIN_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 GENERAL_FAILURE 45 GENERAL_FAILURE
46 }; 46 };
47 47
48 // The WebKit side of a plugin implementation. It provides wrappers around 48 // The WebKit side of a plugin implementation. It provides wrappers around
49 // operations that need to interact with the frame and other WebCore objects. 49 // operations that need to interact with the frame and other WebCore objects.
50 class WebPlugin { 50 class WebPlugin {
51 public: 51 public:
52 WebPlugin() { } 52 WebPlugin() { }
53 virtual ~WebPlugin() { } 53 virtual ~WebPlugin() { }
54 54
55 #if defined(OS_LINUX)
56 // Called by the plugin delegate to request a container for a new
57 // windowed plugin. This handle will later get destroyed with
58 // WillDestroyWindow.
59 virtual gfx::PluginWindowHandle CreatePluginContainer() = 0;
60 #endif
61
55 // Called by the plugin delegate to let the WebPlugin know if the plugin is 62 // Called by the plugin delegate to let the WebPlugin know if the plugin is
56 // windowed (i.e. handle is not NULL) or windowless (handle is NULL). This 63 // windowed (i.e. handle is not NULL) or windowless (handle is NULL). This
57 // tells the WebPlugin to send mouse/keyboard events to the plugin delegate, 64 // tells the WebPlugin to send mouse/keyboard events to the plugin delegate,
58 // as well as the information about the HDC for paint operations. 65 // as well as the information about the HDC for paint operations.
59 virtual void SetWindow(gfx::PluginWindowHandle window) = 0; 66 virtual void SetWindow(gfx::PluginWindowHandle window) = 0;
60 67
61 // Called by the plugin delegate to let it know that the window is being 68 // Called by the plugin delegate to let it know that the window is being
62 // destroyed. 69 // destroyed.
63 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; 70 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0;
64 #if defined(OS_WIN) 71 #if defined(OS_WIN)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool* cancel) = 0; 150 bool* cancel) = 0;
144 virtual void DidReceiveData(const char* buffer, int length, 151 virtual void DidReceiveData(const char* buffer, int length,
145 int data_offset) = 0; 152 int data_offset) = 0;
146 virtual void DidFinishLoading() = 0; 153 virtual void DidFinishLoading() = 0;
147 virtual void DidFail() = 0; 154 virtual void DidFail() = 0;
148 virtual bool IsMultiByteResponseExpected() = 0; 155 virtual bool IsMultiByteResponseExpected() = 0;
149 }; 156 };
150 157
151 158
152 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ 159 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698