| 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, | 297 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, |
| 298 const WebKit::WebPluginParams& params); | 298 const WebKit::WebPluginParams& params); |
| 299 | 299 |
| 300 // Asks the browser for the CPBrowsingContext associated with this renderer. | 300 // Asks the browser for the CPBrowsingContext associated with this renderer. |
| 301 // This is an opaque identifier associated with the renderer for sending | 301 // This is an opaque identifier associated with the renderer for sending |
| 302 // messages for the given "Chrome Plugin." The Chrome Plugin API is used | 302 // messages for the given "Chrome Plugin." The Chrome Plugin API is used |
| 303 // only by gears and this function can be deleted when we remove gears. | 303 // only by gears and this function can be deleted when we remove gears. |
| 304 uint32 GetCPBrowsingContext(); | 304 uint32 GetCPBrowsingContext(); |
| 305 | 305 |
| 306 #if defined(OS_MACOSX) | 306 #if defined(OS_MACOSX) |
| 307 // Helper routines for GPU plugin support. Used by the | 307 // Enables/disabled plugin IME for the given plugin. |
| 308 void SetPluginImeEnabled(bool enabled, int plugin_id); |
| 309 |
| 310 // Helper routines for accelerated plugin support. Used by the |
| 308 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 311 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
| 309 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 312 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
| 310 bool root); | 313 bool root); |
| 311 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 314 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
| 312 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 315 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
| 313 int32 width, | 316 int32 width, |
| 314 int32 height, | 317 int32 height, |
| 315 uint64 io_surface_identifier); | 318 uint64 io_surface_identifier); |
| 316 TransportDIB::Handle AcceleratedSurfaceAllocTransportDIB(size_t size); | 319 TransportDIB::Handle AcceleratedSurfaceAllocTransportDIB(size_t size); |
| 317 void AcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id); | 320 void AcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 void OnInstallMissingPlugin(); | 820 void OnInstallMissingPlugin(); |
| 818 void OnLoadBlockedPlugins(); | 821 void OnLoadBlockedPlugins(); |
| 819 void OnMediaPlayerActionAt(const gfx::Point& location, | 822 void OnMediaPlayerActionAt(const gfx::Point& location, |
| 820 const WebKit::WebMediaPlayerAction& action); | 823 const WebKit::WebMediaPlayerAction& action); |
| 821 void OnMoveOrResizeStarted(); | 824 void OnMoveOrResizeStarted(); |
| 822 void OnNavigate(const ViewMsg_Navigate_Params& params); | 825 void OnNavigate(const ViewMsg_Navigate_Params& params); |
| 823 void OnNotifyRendererViewType(ViewType::Type view_type); | 826 void OnNotifyRendererViewType(ViewType::Type view_type); |
| 824 void OnFillPasswordForm( | 827 void OnFillPasswordForm( |
| 825 const webkit_glue::PasswordFormFillData& form_data); | 828 const webkit_glue::PasswordFormFillData& form_data); |
| 826 void OnPaste(); | 829 void OnPaste(); |
| 830 #if defined(OS_MACOSX) |
| 831 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id); |
| 832 #endif |
| 827 void OnPrintingDone(int document_cookie, bool success); | 833 void OnPrintingDone(int document_cookie, bool success); |
| 828 void OnPrintPages(); | 834 void OnPrintPages(); |
| 829 void OnRedo(); | 835 void OnRedo(); |
| 830 void OnReloadFrame(); | 836 void OnReloadFrame(); |
| 831 void OnReplace(const string16& text); | 837 void OnReplace(const string16& text); |
| 832 void OnReservePageIDRange(int size_of_range); | 838 void OnReservePageIDRange(int size_of_range); |
| 833 void OnResetPageEncodingToDefault(); | 839 void OnResetPageEncodingToDefault(); |
| 834 void OnRevertTranslation(int page_id); | 840 void OnRevertTranslation(int page_id); |
| 835 void OnScriptEvalRequest(const string16& frame_xpath, | 841 void OnScriptEvalRequest(const string16& frame_xpath, |
| 836 const string16& jscript, | 842 const string16& jscript, |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1363 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
| 1358 // sections rather than throwing it randomly at the end. If you're adding a | 1364 // sections rather than throwing it randomly at the end. If you're adding a |
| 1359 // bunch of stuff, you should probably create a helper class and put your | 1365 // bunch of stuff, you should probably create a helper class and put your |
| 1360 // data and methods on that to avoid bloating RenderView more. | 1366 // data and methods on that to avoid bloating RenderView more. |
| 1361 // --------------------------------------------------------------------------- | 1367 // --------------------------------------------------------------------------- |
| 1362 | 1368 |
| 1363 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1369 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1364 }; | 1370 }; |
| 1365 | 1371 |
| 1366 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1372 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |