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

Side by Side Diff: content/plugin/webplugin_proxy.h

Issue 7082034: Send IME events to windowless plug-ins (Chromium side) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PLUGIN_WEBPLUGIN_PROXY_H_ 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_
6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Create/destroy TranportDIBs via messages to the browser process. 160 // Create/destroy TranportDIBs via messages to the browser process.
161 // These are only used when IOSurface support is not available. 161 // These are only used when IOSurface support is not available.
162 virtual void AllocSurfaceDIB(const size_t size, 162 virtual void AllocSurfaceDIB(const size_t size,
163 TransportDIB::Handle* dib_handle); 163 TransportDIB::Handle* dib_handle);
164 virtual void FreeSurfaceDIB(TransportDIB::Id dib_id); 164 virtual void FreeSurfaceDIB(TransportDIB::Id dib_id);
165 #endif 165 #endif
166 166
167 virtual void URLRedirectResponse(bool allow, int resource_id); 167 virtual void URLRedirectResponse(bool allow, int resource_id);
168 168
169 #if defined(OS_WIN)
170 // Retrieves the IME status from a windowless plug-in and sends it to a
171 // renderer process. A renderer process will convert the coordinates from
172 // local to the window coordinates and send the converted coordinates to a
173 // browser process.
174 void UpdateIMEStatus();
175 #endif
176
169 private: 177 private:
170 bool Send(IPC::Message* msg); 178 bool Send(IPC::Message* msg);
171 179
172 // Handler for sending over the paint event to the plugin. 180 // Handler for sending over the paint event to the plugin.
173 void OnPaint(const gfx::Rect& damaged_rect); 181 void OnPaint(const gfx::Rect& damaged_rect);
174 182
175 // Updates the shared memory section where windowless plugins paint. 183 // Updates the shared memory section where windowless plugins paint.
176 void SetWindowlessBuffer(const TransportDIB::Handle& windowless_buffer, 184 void SetWindowlessBuffer(const TransportDIB::Handle& windowless_buffer,
177 const TransportDIB::Handle& background_buffer, 185 const TransportDIB::Handle& background_buffer,
178 const gfx::Rect& window_rect); 186 const gfx::Rect& window_rect);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 224
217 #endif 225 #endif
218 226
219 // Contains the routing id of the host render view. 227 // Contains the routing id of the host render view.
220 int host_render_view_routing_id_; 228 int host_render_view_routing_id_;
221 229
222 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 230 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
223 }; 231 };
224 232
225 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ 233 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698