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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // (minimized/unminimized, app hidden/unhidden, etc). | 201 // (minimized/unminimized, app hidden/unhidden, etc). |
202 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 202 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
203 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 203 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
204 // message and renderer-side handling) can be removed in favor of using | 204 // message and renderer-side handling) can be removed in favor of using |
205 // WasHidden/DidBecomeSelected. | 205 // WasHidden/DidBecomeSelected. |
206 virtual void SetWindowVisibility(bool visible) = 0; | 206 virtual void SetWindowVisibility(bool visible) = 0; |
207 | 207 |
208 // Informs the view that its containing window's frame changed. | 208 // Informs the view that its containing window's frame changed. |
209 virtual void WindowFrameChanged() = 0; | 209 virtual void WindowFrameChanged() = 0; |
210 | 210 |
211 // Start or stop plugin IME for the given plugin. | 211 // Informs the view that a plugin gained or lost focus. |
212 virtual void SetPluginImeEnabled(bool enabled, int plugin_id) = 0; | 212 virtual void PluginFocusChanged(bool focused, int plugin_id) = 0; |
| 213 |
| 214 // Start plugin IME. |
| 215 virtual void StartPluginIme() = 0; |
213 | 216 |
214 // Does any event handling necessary for plugin IME; should be called after | 217 // Does any event handling necessary for plugin IME; should be called after |
215 // the plugin has already had a chance to process the event. If plugin IME is | 218 // the plugin has already had a chance to process the event. If plugin IME is |
216 // not enabled, this is a no-op, so it is always safe to call. | 219 // not enabled, this is a no-op, so it is always safe to call. |
217 // Returns true if the event was handled by IME. | 220 // Returns true if the event was handled by IME. |
218 virtual bool PostProcessEventForPluginIme( | 221 virtual bool PostProcessEventForPluginIme( |
219 const NativeWebKeyboardEvent& event) = 0; | 222 const NativeWebKeyboardEvent& event) = 0; |
220 | 223 |
221 // Methods associated with GPU-accelerated plug-in instances. | 224 // Methods associated with GPU-accelerated plug-in instances. |
222 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 225 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 312 |
310 // The current reserved area in view coordinates where contents should not be | 313 // The current reserved area in view coordinates where contents should not be |
311 // rendered to draw the resize corner, sidebar mini tabs etc. | 314 // rendered to draw the resize corner, sidebar mini tabs etc. |
312 gfx::Rect reserved_rect_; | 315 gfx::Rect reserved_rect_; |
313 | 316 |
314 private: | 317 private: |
315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
316 }; | 319 }; |
317 | 320 |
318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |