OLD | NEW |
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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck( | 301 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck( |
302 WebKit::WebFrame* frame, | 302 WebKit::WebFrame* frame, |
303 const WebKit::WebPluginParams& params); | 303 const WebKit::WebPluginParams& params); |
304 | 304 |
305 // Informs the render view that a PPAPI plugin has gained or lost focus. | 305 // Informs the render view that a PPAPI plugin has gained or lost focus. |
306 void PpapiPluginFocusChanged(); | 306 void PpapiPluginFocusChanged(); |
307 | 307 |
308 // Request updated policy regarding firewall NAT traversal being enabled. | 308 // Request updated policy regarding firewall NAT traversal being enabled. |
309 void RequestRemoteAccessClientFirewallTraversal(); | 309 void RequestRemoteAccessClientFirewallTraversal(); |
310 | 310 |
311 #if defined(OS_MACOSX) | 311 #if defined(OS_MACOSX) || defined(OS_WIN) |
312 // Informs the render view that the given plugin has gained or lost focus. | 312 // Informs the render view that the given plugin has gained or lost focus. |
313 void PluginFocusChanged(bool focused, int plugin_id); | 313 void PluginFocusChanged(bool focused, int plugin_id); |
| 314 #endif |
314 | 315 |
| 316 #if defined(OS_MACOSX) |
315 // Starts plugin IME. | 317 // Starts plugin IME. |
316 void StartPluginIme(); | 318 void StartPluginIme(); |
317 | 319 |
318 // Helper routines for accelerated plugin support. Used by the | 320 // Helper routines for accelerated plugin support. Used by the |
319 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 321 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
320 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 322 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
321 bool root); | 323 bool root); |
322 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 324 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
323 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 325 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
324 int32 width, | 326 int32 width, |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 | 1123 |
1122 // Plugins ------------------------------------------------------------------- | 1124 // Plugins ------------------------------------------------------------------- |
1123 | 1125 |
1124 PepperPluginDelegateImpl pepper_delegate_; | 1126 PepperPluginDelegateImpl pepper_delegate_; |
1125 | 1127 |
1126 // All the currently active plugin delegates for this RenderView; kept so that | 1128 // All the currently active plugin delegates for this RenderView; kept so that |
1127 // we can enumerate them to send updates about things like window location | 1129 // we can enumerate them to send updates about things like window location |
1128 // or tab focus and visibily. These are non-owning references. | 1130 // or tab focus and visibily. These are non-owning references. |
1129 std::set<WebPluginDelegateProxy*> plugin_delegates_; | 1131 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
1130 | 1132 |
| 1133 #if defined(OS_WIN) |
| 1134 // The ID of the focused NPAPI plug-in. |
| 1135 int focused_plugin_id_; |
| 1136 #endif |
| 1137 |
1131 // Helper objects ------------------------------------------------------------ | 1138 // Helper objects ------------------------------------------------------------ |
1132 | 1139 |
1133 RendererWebCookieJarImpl cookie_jar_; | 1140 RendererWebCookieJarImpl cookie_jar_; |
1134 | 1141 |
1135 // The next group of objects all implement RenderViewObserver, so are deleted | 1142 // The next group of objects all implement RenderViewObserver, so are deleted |
1136 // along with the RenderView automatically. This is why we just store weak | 1143 // along with the RenderView automatically. This is why we just store weak |
1137 // references. | 1144 // references. |
1138 | 1145 |
1139 // Holds a reference to the service which provides desktop notifications. | 1146 // Holds a reference to the service which provides desktop notifications. |
1140 NotificationProvider* notification_provider_; | 1147 NotificationProvider* notification_provider_; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 // bunch of stuff, you should probably create a helper class and put your | 1232 // bunch of stuff, you should probably create a helper class and put your |
1226 // data and methods on that to avoid bloating RenderView more. You can use | 1233 // data and methods on that to avoid bloating RenderView more. You can use |
1227 // the Observer interface to filter IPC messages and receive frame change | 1234 // the Observer interface to filter IPC messages and receive frame change |
1228 // notifications. | 1235 // notifications. |
1229 // --------------------------------------------------------------------------- | 1236 // --------------------------------------------------------------------------- |
1230 | 1237 |
1231 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1238 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1232 }; | 1239 }; |
1233 | 1240 |
1234 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1241 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |