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

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, 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/plugin/webplugin_proxy.cc » ('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) 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Create/destroy TranportDIBs via messages to the browser process. 162 // Create/destroy TranportDIBs via messages to the browser process.
163 // These are only used when IOSurface support is not available. 163 // These are only used when IOSurface support is not available.
164 virtual void AllocSurfaceDIB(const size_t size, 164 virtual void AllocSurfaceDIB(const size_t size,
165 TransportDIB::Handle* dib_handle); 165 TransportDIB::Handle* dib_handle);
166 virtual void FreeSurfaceDIB(TransportDIB::Id dib_id); 166 virtual void FreeSurfaceDIB(TransportDIB::Id dib_id);
167 #endif 167 #endif
168 168
169 virtual void URLRedirectResponse(bool allow, int resource_id); 169 virtual void URLRedirectResponse(bool allow, int resource_id);
170 170
171 #if defined(OS_WIN)
172 // Retrieves the IME status from a windowless plug-in and sends it to a
173 // renderer process. A renderer process will convert the coordinates from
174 // local to the window coordinates and send the converted coordinates to a
175 // browser process.
176 void UpdateIMEStatus();
177 #endif
178
171 private: 179 private:
172 bool Send(IPC::Message* msg); 180 bool Send(IPC::Message* msg);
173 181
174 // Handler for sending over the paint event to the plugin. 182 // Handler for sending over the paint event to the plugin.
175 void OnPaint(const gfx::Rect& damaged_rect); 183 void OnPaint(const gfx::Rect& damaged_rect);
176 184
177 #if defined(OS_WIN) 185 #if defined(OS_WIN)
178 void CreateCanvasFromHandle(const TransportDIB::Handle& dib_handle, 186 void CreateCanvasFromHandle(const TransportDIB::Handle& dib_handle,
179 const gfx::Rect& window_rect, 187 const gfx::Rect& window_rect,
180 scoped_ptr<skia::PlatformCanvas>* canvas_out); 188 scoped_ptr<skia::PlatformCanvas>* canvas_out);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 271
264 #endif 272 #endif
265 273
266 // Contains the routing id of the host render view. 274 // Contains the routing id of the host render view.
267 int host_render_view_routing_id_; 275 int host_render_view_routing_id_;
268 276
269 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 277 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
270 }; 278 };
271 279
272 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ 280 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698