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

Side by Side Diff: webkit/glue/webview_delegate.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/webplugin_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // platform-neutral 126 // platform-neutral
127 virtual WebPluginDelegate* CreatePluginDelegate( 127 virtual WebPluginDelegate* CreatePluginDelegate(
128 WebView* webview, 128 WebView* webview,
129 const GURL& url, 129 const GURL& url,
130 const std::string& mime_type, 130 const std::string& mime_type,
131 const std::string& clsid, 131 const std::string& clsid,
132 std::string* actual_mime_type) { 132 std::string* actual_mime_type) {
133 return NULL; 133 return NULL;
134 } 134 }
135 135
136 // Called when a windowed plugin is initializing, to request a container
137 // for the plugin. Only used on Linux.
138 virtual gfx::PluginWindowHandle CreatePluginContainer() { return 0; }
139
136 // Called when a windowed plugin is closing. 140 // Called when a windowed plugin is closing.
137 // Lets the view delegate shut down anything it is using to wrap the plugin. 141 // Lets the view delegate shut down anything it is using to wrap the plugin.
138 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) { } 142 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) { }
139 143
140 // This method is called when the renderer creates a worker object. 144 // This method is called when the renderer creates a worker object.
141 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client) { 145 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client) {
142 return NULL; 146 return NULL;
143 } 147 }
144 148
145 // Called when a WebMediaPlayer is needed. 149 // Called when a WebMediaPlayer is needed.
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 virtual void DidAddHistoryItem() { } 818 virtual void DidAddHistoryItem() { }
815 819
816 WebViewDelegate() { } 820 WebViewDelegate() { }
817 virtual ~WebViewDelegate() { } 821 virtual ~WebViewDelegate() { }
818 822
819 private: 823 private:
820 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 824 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
821 }; 825 };
822 826
823 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 827 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698