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

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

Issue 3808001: Implement IME for Mac plugins using the Cocoa event model on 10.6 (Closed)
Patch Set: Windows and unit test compile fixes Created 10 years, 2 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 | « third_party/mozilla/README.chromium ('k') | webkit/glue/plugins/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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Called when the WebPluginResourceClient instance is deleted. 142 // Called when the WebPluginResourceClient instance is deleted.
143 virtual void ResourceClientDeleted( 143 virtual void ResourceClientDeleted(
144 WebPluginResourceClient* resource_client) {} 144 WebPluginResourceClient* resource_client) {}
145 145
146 // Defers the loading of the resource identified by resource_id. This is 146 // Defers the loading of the resource identified by resource_id. This is
147 // controlled by the defer parameter. 147 // controlled by the defer parameter.
148 virtual void SetDeferResourceLoading(unsigned long resource_id, 148 virtual void SetDeferResourceLoading(unsigned long resource_id,
149 bool defer) = 0; 149 bool defer) = 0;
150 150
151 #if defined(OS_MACOSX) 151 #if defined(OS_MACOSX)
152 // Enables/disables plugin IME.
153 virtual void SetImeEnabled(bool enabled) {};
154
152 // Synthesize a fake window handle for the plug-in to identify the instance 155 // Synthesize a fake window handle for the plug-in to identify the instance
153 // to the browser, allowing mapping to a surface for hardware accelleration 156 // to the browser, allowing mapping to a surface for hardware accelleration
154 // of plug-in content. The browser generates the handle which is then set on 157 // of plug-in content. The browser generates the handle which is then set on
155 // the plug-in. |opaque| indicates whether the content should be treated as 158 // the plug-in. |opaque| indicates whether the content should be treated as
156 // opaque or translucent. 159 // opaque or translucent.
157 // TODO(stuartmorgan): Move this into WebPluginProxy. 160 // TODO(stuartmorgan): Move this into WebPluginProxy.
158 virtual void BindFakePluginWindowHandle(bool opaque) {} 161 virtual void BindFakePluginWindowHandle(bool opaque) {}
159 162
160 // Returns the accelerated surface abstraction for accelerated plugins. 163 // Returns the accelerated surface abstraction for accelerated plugins.
161 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface() { return NULL; } 164 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface() { return NULL; }
(...skipping 20 matching lines...) Expand all
182 virtual void DidReceiveData(const char* buffer, int length, 185 virtual void DidReceiveData(const char* buffer, int length,
183 int data_offset) = 0; 186 int data_offset) = 0;
184 virtual void DidFinishLoading() = 0; 187 virtual void DidFinishLoading() = 0;
185 virtual void DidFail() = 0; 188 virtual void DidFail() = 0;
186 virtual bool IsMultiByteResponseExpected() = 0; 189 virtual bool IsMultiByteResponseExpected() = 0;
187 }; 190 };
188 191
189 } // namespace webkit_glue 192 } // namespace webkit_glue
190 193
191 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ 194 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « third_party/mozilla/README.chromium ('k') | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698