OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 void CancelDocumentLoad(); | 134 void CancelDocumentLoad(); |
135 void InitiateHTTPRangeRequest( | 135 void InitiateHTTPRangeRequest( |
136 const char* url, const char* range_info, int range_request_id); | 136 const char* url, const char* range_info, int range_request_id); |
137 void SetDeferResourceLoading(unsigned long resource_id, bool defer); | 137 void SetDeferResourceLoading(unsigned long resource_id, bool defer); |
138 bool IsOffTheRecord(); | 138 bool IsOffTheRecord(); |
139 void ResourceClientDeleted( | 139 void ResourceClientDeleted( |
140 webkit_glue::WebPluginResourceClient* resource_client); | 140 webkit_glue::WebPluginResourceClient* resource_client); |
141 gfx::NativeViewId containing_window() { return containing_window_; } | 141 gfx::NativeViewId containing_window() { return containing_window_; } |
142 | 142 |
143 #if defined(OS_MACOSX) | 143 #if defined(OS_MACOSX) |
| 144 virtual void SetImeEnabled(bool enabled); |
| 145 |
144 virtual void BindFakePluginWindowHandle(bool opaque); | 146 virtual void BindFakePluginWindowHandle(bool opaque); |
145 | 147 |
146 virtual webkit_glue::WebPluginAcceleratedSurface* GetAcceleratedSurface(); | 148 virtual webkit_glue::WebPluginAcceleratedSurface* GetAcceleratedSurface(); |
147 | 149 |
148 // Tell the browser (via the renderer) to invalidate because the | 150 // Tell the browser (via the renderer) to invalidate because the |
149 // accelerated buffers have changed. | 151 // accelerated buffers have changed. |
150 virtual void AcceleratedFrameBuffersDidSwap(gfx::PluginWindowHandle window); | 152 virtual void AcceleratedFrameBuffersDidSwap(gfx::PluginWindowHandle window); |
151 | 153 |
152 // Tell the renderer and browser to associate the given plugin handle with | 154 // Tell the renderer and browser to associate the given plugin handle with |
153 // |accelerated_surface_identifier|. The geometry is used to resize any | 155 // |accelerated_surface_identifier|. The geometry is used to resize any |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 226 |
225 #endif | 227 #endif |
226 | 228 |
227 // Contains the routing id of the host render view. | 229 // Contains the routing id of the host render view. |
228 int host_render_view_routing_id_; | 230 int host_render_view_routing_id_; |
229 | 231 |
230 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 232 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
231 }; | 233 }; |
232 | 234 |
233 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 235 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
OLD | NEW |