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 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, | 345 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, |
346 const WebKit::WebPluginParams& params); | 346 const WebKit::WebPluginParams& params); |
347 | 347 |
348 // Asks the browser for the CPBrowsingContext associated with this renderer. | 348 // Asks the browser for the CPBrowsingContext associated with this renderer. |
349 // This is an opaque identifier associated with the renderer for sending | 349 // This is an opaque identifier associated with the renderer for sending |
350 // messages for the given "Chrome Plugin." The Chrome Plugin API is used | 350 // messages for the given "Chrome Plugin." The Chrome Plugin API is used |
351 // only by gears and this function can be deleted when we remove gears. | 351 // only by gears and this function can be deleted when we remove gears. |
352 uint32 GetCPBrowsingContext(); | 352 uint32 GetCPBrowsingContext(); |
353 | 353 |
354 #if defined(OS_MACOSX) | 354 #if defined(OS_MACOSX) |
355 // Enables/disabled plugin IME for the given plugin. | 355 // Informs the render view that the given plugin has gained or lost focus. |
356 void SetPluginImeEnabled(bool enabled, int plugin_id); | 356 void PluginFocusChanged(bool focused, int plugin_id); |
| 357 |
| 358 // Starts plugin IME. |
| 359 void StartPluginIme(); |
357 | 360 |
358 // Helper routines for accelerated plugin support. Used by the | 361 // Helper routines for accelerated plugin support. Used by the |
359 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 362 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
360 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 363 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
361 bool root); | 364 bool root); |
362 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 365 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
363 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 366 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
364 int32 width, | 367 int32 width, |
365 int32 height, | 368 int32 height, |
366 uint64 io_surface_identifier); | 369 uint64 io_surface_identifier); |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 const std::string& target); | 894 const std::string& target); |
892 void OnInstallMissingPlugin(); | 895 void OnInstallMissingPlugin(); |
893 void OnDisplayPrerenderedPage(); | 896 void OnDisplayPrerenderedPage(); |
894 void OnMediaPlayerActionAt(const gfx::Point& location, | 897 void OnMediaPlayerActionAt(const gfx::Point& location, |
895 const WebKit::WebMediaPlayerAction& action); | 898 const WebKit::WebMediaPlayerAction& action); |
896 void OnMoveOrResizeStarted(); | 899 void OnMoveOrResizeStarted(); |
897 void OnNavigate(const ViewMsg_Navigate_Params& params); | 900 void OnNavigate(const ViewMsg_Navigate_Params& params); |
898 void OnNotifyRendererViewType(ViewType::Type view_type); | 901 void OnNotifyRendererViewType(ViewType::Type view_type); |
899 void OnPaste(); | 902 void OnPaste(); |
900 #if defined(OS_MACOSX) | 903 #if defined(OS_MACOSX) |
901 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id); | 904 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
902 #endif | 905 #endif |
903 void OnPrintingDone(int document_cookie, bool success); | 906 void OnPrintingDone(int document_cookie, bool success); |
904 void OnPrintPages(); | 907 void OnPrintPages(); |
905 void OnPrintPreview(); | 908 void OnPrintPreview(); |
906 void OnPrintNodeUnderContextMenu(); | 909 void OnPrintNodeUnderContextMenu(); |
907 void OnRedo(); | 910 void OnRedo(); |
908 void OnReloadFrame(); | 911 void OnReloadFrame(); |
909 void OnReplace(const string16& text); | 912 void OnReplace(const string16& text); |
910 void OnReservePageIDRange(int size_of_range); | 913 void OnReservePageIDRange(int size_of_range); |
911 void OnResetPageEncodingToDefault(); | 914 void OnResetPageEncodingToDefault(); |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 // bunch of stuff, you should probably create a helper class and put your | 1483 // bunch of stuff, you should probably create a helper class and put your |
1481 // data and methods on that to avoid bloating RenderView more. You can use | 1484 // data and methods on that to avoid bloating RenderView more. You can use |
1482 // the Observer interface to filter IPC messages and receive frame change | 1485 // the Observer interface to filter IPC messages and receive frame change |
1483 // notifications. | 1486 // notifications. |
1484 // --------------------------------------------------------------------------- | 1487 // --------------------------------------------------------------------------- |
1485 | 1488 |
1486 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1489 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1487 }; | 1490 }; |
1488 | 1491 |
1489 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1492 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |