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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 6259013: Update Mac plugin IME handling to match updated spec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 9 years, 11 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698