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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 namespace IPC { | 26 namespace IPC { |
27 class Message; | 27 class Message; |
28 } | 28 } |
29 | 29 |
30 class BackingStore; | 30 class BackingStore; |
31 class RenderProcessHost; | 31 class RenderProcessHost; |
32 class RenderWidgetHost; | 32 class RenderWidgetHost; |
33 class VideoLayer; | 33 class VideoLayer; |
34 class WebCursor; | 34 class WebCursor; |
| 35 struct NativeWebKeyboardEvent; |
35 struct ViewHostMsg_AccessibilityNotification_Params; | 36 struct ViewHostMsg_AccessibilityNotification_Params; |
36 struct WebMenuItem; | 37 struct WebMenuItem; |
37 | 38 |
38 namespace webkit_glue { | 39 namespace webkit_glue { |
39 struct WebAccessibility; | 40 struct WebAccessibility; |
40 struct WebPluginGeometry; | 41 struct WebPluginGeometry; |
41 } | 42 } |
42 | 43 |
43 // RenderWidgetHostView is an interface implemented by an object that acts as | 44 // RenderWidgetHostView is an interface implemented by an object that acts as |
44 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its | 45 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // (minimized/unminimized, app hidden/unhidden, etc). | 205 // (minimized/unminimized, app hidden/unhidden, etc). |
205 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 206 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
206 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 207 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
207 // message and renderer-side handling) can be removed in favor of using | 208 // message and renderer-side handling) can be removed in favor of using |
208 // WasHidden/DidBecomeSelected. | 209 // WasHidden/DidBecomeSelected. |
209 virtual void SetWindowVisibility(bool visible) = 0; | 210 virtual void SetWindowVisibility(bool visible) = 0; |
210 | 211 |
211 // Informs the view that its containing window's frame changed. | 212 // Informs the view that its containing window's frame changed. |
212 virtual void WindowFrameChanged() = 0; | 213 virtual void WindowFrameChanged() = 0; |
213 | 214 |
| 215 // Start or stop plugin IME for the given plugin. |
| 216 virtual void SetPluginImeEnabled(bool enabled, int plugin_id) = 0; |
| 217 |
| 218 // Does any event handling necessary for plugin IME; should be called after |
| 219 // the plugin has already had a chance to process the event. If plugin IME is |
| 220 // not enabled, this is a no-op, so it is always safe to call. |
| 221 // Returns true if the event was handled by IME. |
| 222 virtual bool PostProcessEventForPluginIme( |
| 223 const NativeWebKeyboardEvent& event) = 0; |
| 224 |
214 // Methods associated with GPU-accelerated plug-in instances. | 225 // Methods associated with GPU-accelerated plug-in instances. |
215 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 226 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
216 bool opaque, bool root) = 0; | 227 bool opaque, bool root) = 0; |
217 virtual void DestroyFakePluginWindowHandle( | 228 virtual void DestroyFakePluginWindowHandle( |
218 gfx::PluginWindowHandle window) = 0; | 229 gfx::PluginWindowHandle window) = 0; |
219 virtual void AcceleratedSurfaceSetIOSurface( | 230 virtual void AcceleratedSurfaceSetIOSurface( |
220 gfx::PluginWindowHandle window, | 231 gfx::PluginWindowHandle window, |
221 int32 width, | 232 int32 width, |
222 int32 height, | 233 int32 height, |
223 uint64 io_surface_identifier) = 0; | 234 uint64 io_surface_identifier) = 0; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 283 |
273 // A custom background to paint behind the web content. This will be tiled | 284 // A custom background to paint behind the web content. This will be tiled |
274 // horizontally. Can be null, in which case we fall back to painting white. | 285 // horizontally. Can be null, in which case we fall back to painting white. |
275 SkBitmap background_; | 286 SkBitmap background_; |
276 | 287 |
277 private: | 288 private: |
278 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 289 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
279 }; | 290 }; |
280 | 291 |
281 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 292 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |